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

def testBindOutDateArrayByVar(self):

    array = self.cursor.arrayvar(cx_Oracle.DATETIME, 6, 100)
    self.cursor.execute(u'\n                                                                begin\n                                                                        pkg_TestDateArrays.TestOutArrays(:numElems,    :array);\n                                                                end;', numElems=6, array=array)
    self.failUnlessEqual(array.getvalue(), [cx_Oracle.Timestamp(2002, 12, 13, 4, 48, 0), cx_Oracle.Timestamp(2002, 12, 14, 9, 36, 0), cx_Oracle.Timestamp(2002, 12, 15, 14, 24, 0), cx_Oracle.Timestamp(2002, 12, 16, 19, 12, 0), cx_Oracle.Timestamp(2002, 12, 18, 0, 0, 0), cx_Oracle.Timestamp(2002, 12, 19, 4, 48, 0)])
