'test binding in a unicode array'

def testBindUnicodeArrayDirect(self):

    returnValue = self.cursor.var(cx_Oracle.NUMBER)
    array = [r[1] for r in self.rawData]
    statement = '\n                                                                begin\n                                                                        :retval    :=    pkg_TestUnicodeArrays.TestInArrays(\n                                                                                        :integerValue,    :array);\n                                                                end;'
    self.cursor.execute(statement, retval=returnValue, integerValue=5, array=array)
    self.failUnlessEqual(returnValue.getvalue(), 116)
    array = [(u'Unicode    -    \u3042    %d' % i) for i in range(15)]
    self.cursor.execute(statement, integerValue=8, array=array)
    self.failUnlessEqual(returnValue.getvalue(), 208)
