

def testBindLongStringAfterSettingSize(self):
    'test that setinputsizes() returns a long variable'
    var = self.cursor.setinputsizes(test=90000)['test']
    self.failUnlessEqual(type(var), cx_Oracle.LONG_STRING)
    inString = ('1234567890' * 9000)
    outString.setvalue(0, inString)
    outString = var.getvalue()
    self.failUnlessEqual(inString, outString, ('output does not match: in was %d, out was %d' % (len(inString), len(outString))))

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/StringVar.py TestStringVar.testBindLongStringAfterSettingSize/VarMisuse@50/93 `var`->`outString`