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

def testBindOutStringArrayByVar(self):

    array = self.cursor.arrayvar(cx_Oracle.STRING, 6, 100)
    expectedData = [(u'Test    out    element    #    %d' % i) for i in range(1, 7)]
    self.cursor.execute(u'\n                                                                begin\n                                                                        pkg_TestStringArrays.TestOutArrays(:numElems,    :array);\n                                                                end;', numElems=6, array=array)
    self.failUnlessEqual(array.getvalue(), expectedData)
