'test binding in/out a date array (with arrayvar)'

def testBindInOutDateArrayByVar(self):

    array = self.cursor.arrayvar(cx_Oracle.DATETIME, 10, 100)
    originalData = [r[1] for r in self.rawData]
    array.setvalue(0, originalData)
    self.cursor.execute('\n                                                                begin\n                                                                        pkg_TestDateArrays.TestInOutArrays(:numElems,    :array);\n                                                                end;', numElems=5, array=array)
    self.failUnlessEqual(array.getvalue(), ([cx_Oracle.Timestamp(2002, 12, 17, 2, 24, 0), cx_Oracle.Timestamp(2002, 12, 18, 4, 48, 0), cx_Oracle.Timestamp(2002, 12, 19, 7, 12, 0), cx_Oracle.Timestamp(2002, 12, 20, 9, 36, 0), cx_Oracle.Timestamp(2002, 12, 21, 12, 0, 0)] + originalData[5:]))
