'test binding in a date array'

def testBindDateArrayDirect(self):

    returnValue = self.cursor.var(cx_Oracle.NUMBER)
    array = [r[1] for r in self.rawData]
    statement = '\n                                                                begin\n                                                                        :returnValue    :=    pkg_TestDateArrays.TestInArrays(\n                                                                                        :startValue,    :baseDate,    :array);\n                                                                end;'
    self.cursor.execute(statement, returnValue=returnValue, startValue=5, baseDate=cx_Oracle.Date(2002, 12, 12), array=array)
    self.failUnlessEqual(returnValue.getvalue(), 35.5)
    array = (array + array[:5])
    self.cursor.execute(statement, startValue=7, baseDate=cx_Oracle.Date(2002, 12, 13), array=array)
    self.failUnlessEqual(returnValue.getvalue(), 24.0)
