

def testBindInOutSetInputSizesByType(self):
    'test binding in/out with set input sizes defined (by type)'
    vars = self.cursor.setinputsizes(p_Value=cx_Oracle.STRING)
    self.cursor.execute("\n                begin\n                  :p_Value := :p_Value || ' TSI';\n                end;", p_Value='InVal')
    self.failUnlessEqual(vars['p_Value'].getvalue(), 'InVal TSI')

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/StringVar.py TestStringVar.testBindInOutSetInputSizesByType/original