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

def testBindOutUnicodeArrayByVar(self):

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