lib/ldb/tests: add test for ldb.Dn passed utf8 unicode
authorNoel Power <noel.power@suse.com>
Mon, 24 Sep 2018 13:37:50 +0000 (14:37 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 26 Sep 2018 23:54:26 +0000 (01:54 +0200)
commitd1492ab919b19d1ca72f1d7c97ac0ca3bee13a2a
tree748ac4eda06df58c8190960c4555c304786d6476
parentd786e1fca95395e793867278bc0408e33c19908b
lib/ldb/tests: add test for ldb.Dn passed utf8 unicode

object dn format should be a utf8 encoded string
Note: Currently this fails in python2 as the c python binding for
      the dn string param uses PyArg_ParseTupleAndKeywords() with 's'
      format, this will accept str *or* unicode in the default encoding.
      The default encoding in python2 is... ascii.

Also adding here a knownfail to squash the error produced by the test.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/tests/python/api.py
selftest/knownfail