def testBindDateArrayDirect(self):
        "test binding in a date array"
        returnValue = self.cursor.var(cx_Oracle.NUMBER)
        array = [r[1] for r in self.rawData]
        statement = """
                begin
                  :p_ReturnValue := pkg_TestDateArrays.TestInArrays(
                      :p_StartValue, :p_BaseDate, :p_Array);
                end;"""
        self.cursor.execute(statement,
                p_ReturnValue = returnValue,
                p_StartValue = 5,
                p_BaseDate = cx_Oracle.Date(2002, 12, 12),
                p_Array = array)
        self.failUnlessEqual(returnValue.getvalue(), 35.5)
        array = array + array[:5]
        self.cursor.execute(statement,
                p_StartValue = 7,
                p_BaseDate = cx_Oracle.Date(2002, 12, 13),
                p_Array = array)
        self.failUnlessEqual(returnValue.getvalue(), 24.0)
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/DateTimeVar.py/TestDateTimeVar.testBindDateArrayDirect/original