

def testBindInOutSetInputSizes(self):
    'test binding in/out with set input sizes defined'
    vars = self.cursor.setinputsizes(p_Value=cx_Oracle.DATETIME)
    self.cursor.execute('\n                begin\n                  :p_Value := :p_Value + 5.25;\n                end;', p_Value=cx_Oracle.Timestamp(2002, 12, 12, 10, 0, 0))
    self.failUnlessEqual(vars['p_Value'].getvalue(), cx_Oracle.Timestamp(2002, 12, 17, 16, 0, 0))

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/DateTimeVar.py TestDateTimeVar.testBindInOutSetInputSizes/original