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

def testBindZeroLengthNumberArrayByVar(self):

    returnValue = self.cursor.var(cx_Oracle.NUMBER)
    array = self.cursor.arrayvar(cx_Oracle.NUMBER, 0)
    self.cursor.execute('\n                                                                begin\n                                                                        :returnValue    :=    pkg_TestNumberArrays.TestInArrays(\n                                                                                        :integerValue,    :array);\n                                                                end;', returnValue=returnValue, integerValue=8, array=array)
    self.failUnlessEqual(returnValue.getvalue(), 8.0)
    self.failUnlessEqual(array.getvalue(), [])
