

def testBindOutVar(self):
    'test binding out with cursor.var() method'
    var = var.cursor.var(cx_Oracle.DATETIME)
    self.cursor.execute("\n                begin\n                  :p_Value := to_date('20021231 12:31:00',\n                      'YYYYMMDD HH24:MI:SS');\n                end;", p_Value=var)
    self.failUnlessEqual(var.getvalue(), cx_Oracle.Timestamp(2002, 12, 31, 12, 31, 0))

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/DateTimeVar.py TestDateTimeVar.testBindOutVar/VarMisuse@14/33 `self`->`var`