'test binding in/out with cursor.var() method'

def testBindInOutVarDirectSet(self):

    var = self.cursor.var(cx_Oracle.NCHAR)
    var.setvalue(0, u'InVal    \u3041')
    self.cursor.execute("\n                                                                begin\n                                                                        :value    :=    :value    ||    unistr('    TSI    (VAR)    \\3042');\n                                                                end;", value=var)
    self.failUnlessEqual(var.getvalue(), u'InVal    \u3041    TSI    (VAR)    \u3042')
