'test binding in a number array'

def testBindNumberArrayDirect(self):

    returnValue = self.cursor.var(cx_Oracle.NUMBER)
    array = [r[1] for r in self.rawData]
    statement = '\n                                                                begin\n                                                                        :returnValue    :=    pkg_TestNumberArrays.TestInArrays(\n                                                                                        :startValue,    :array);\n                                                                end;'
    self.cursor.execute(statement, returnValue=returnValue, startValue=5, array=array)
    self.failUnlessEqual(returnValue.getvalue(), 73.75)
    array = range(15)
    self.cursor.execute(statement, startValue=10, array=array)
    self.failUnlessEqual(returnValue.getvalue(), 115.0)
