def testStringMaximumReached(self):
        var = self.cursor.setinputsizes(test = 100)["test"]
        inString = "1234567890" * 400
        var.setvalue(0, inString)
        outString = var.getvalue()
        self.failUnlessEqual(inString, outString,
                "output does not match: in was %d, out was %d" % \
                (len(inString), len(outString)))
        badStringSize = 4000 * self.connection.maxBytesPerCharacter + 1
        inString = "X" * badStringSize
        self.failUnlessRaises(ValueError, var.setvalue, 0, inString)
test that an error is raised when maximum string length exceeded
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/StringVar.py/TestStringVar.testStringMaximumReached