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

def testBindOutNumberArrayByVar(self):

    array = self.cursor.arrayvar(cx_Oracle.NUMBER, 6)
    expectedData = [(i * 100) for i in range(1, 7)]
    self.cursor.execute(u'\n                                                                begin\n                                                                        pkg_TestNumberArrays.TestOutArrays(:numElems,    :array);\n                                                                end;', numElems=6, array=array)
    self.failUnlessEqual(array.getvalue(), expectedData)
