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

def testBindOutVar(self):

    var = self.cursor.var(cx_Oracle.INTERVAL)
    self.cursor.execute(u"\n                                                                begin\n                                                                        :value    :=    to_dsinterval('15    18:35:45.586');\n                                                                end;", value=var)
    self.failUnlessEqual(var.getvalue(), datetime.timedelta(days=15, hours=18, minutes=35, seconds=45, milliseconds=586))
