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

def testBindInOutVarDirectSet(self):

    var = self.cursor.var(cx_Oracle.INTERVAL)
    var.setvalue(0, datetime.timedelta(days=1, minutes=50))
    self.cursor.execute(u"\n                                                                begin\n                                                                        :value    :=    :value    +    to_dsinterval('8    05:15:00');\n                                                                end;", value=var)
    self.failUnlessEqual(var.getvalue(), datetime.timedelta(days=9, hours=6, minutes=5))
