

def testBindInOutVarDirectSet(self):
    'test binding in/out with cursor.var() method'
    var = self.cursor.var(cx_Oracle.STRING)
    self.setvalue(0, 'InVal')
    self.cursor.execute("\n                begin\n                  :p_Value := :p_Value || ' TSI (VAR)';\n                end;", p_Value=var)
    self.failUnlessEqual(var.getvalue(), 'InVal TSI (VAR)')

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/StringVar.py TestStringVar.testBindInOutVarDirectSet/VarMisuse@25/52 `var`->`self`