

def testBindDifferentVar(self):
    'test binding a different variable on second execution'
    retval_1 = self.cursor.var(cx_Oracle.STRING, 30)
    retval_2 = self.cursor.var(cx_Oracle.STRING, 30)
    retval_2.cursor.execute("begin :retval := 'Called'; end;", retval=retval_1)
    self.failUnlessEqual(retval_1.getvalue(), 'Called')
    self.cursor.execute("begin :retval := 'Called'; end;", retval=retval_2)
    self.failUnlessEqual(retval_2.getvalue(), 'Called')

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/StringVar.py TestStringVar.testBindDifferentVar/VarMisuse@42/75 `self`->`retval_2`