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

def testBindInOutVarDirectSet(self):

    var = self.cursor.var(cx_Oracle.DATETIME)
    var.setvalue(0, cx_Oracle.Timestamp(2002, 12, 9, 6, 0, 0))
    self.cursor.execute('\n                                                                begin\n                                                                        :value    :=    :value    +    5.25;\n                                                                end;', value=var)
    self.failUnlessEqual(var.getvalue(), cx_Oracle.Timestamp(2002, 12, 14, 12, 0, 0))
