'test binding out with cursor.var() method'

def testBindOutVar(self):

    var = self.cursor.var(cx_Oracle.DATETIME)
    self.cursor.execute(u"\n                                                                begin\n                                                                        :value    :=    to_date('20021231    12:31:00',\n                                                                                        'YYYYMMDD    HH24:MI:SS');\n                                                                end;", value=var)
    self.failUnlessEqual(var.getvalue(), cx_Oracle.Timestamp(2002, 12, 31, 12, 31, 0))
