'test binding in a number array (with arrayvar)'

def testBindNumberArrayByVar(self):

    returnValue = self.cursor.var(cx_Oracle.NUMBER)
    array = self.cursor.arrayvar(cx_Oracle.NUMBER, [r[1] for r in self.rawData])
    array.setvalue(0, [r[1] for r in self.rawData])
    self.cursor.execute(u'\n                                                                begin\n                                                                        :returnValue    :=    pkg_TestNumberArrays.TestInArrays(\n                                                                                        :integerValue,    :array);\n                                                                end;', returnValue=returnValue, integerValue=7, array=array)
    self.failUnlessEqual(returnValue.getvalue(), 75.75)
