lib/ldb/tests/python: Add test to pass utf8 encoded bytes to ldb.Dn
authorNoel Power <noel.power@suse.com>
Thu, 17 Jan 2019 10:05:04 +0000 (10:05 +0000)
committerKarolin Seeger <kseeger@samba.org>
Mon, 21 Jan 2019 08:48:15 +0000 (09:48 +0100)
commit869ae9a17b2fb502714d68c73e95bd066d290a3d
treeac73e23fed55035d268981210cd988ca73a5c17f
parent043e6e8b7d4a87253b01e0c37e4a17d358cc7b1e
lib/ldb/tests/python: Add test to pass utf8 encoded bytes to ldb.Dn

This test should demonstrate an error with the 'es' format in python
where a 'str' byte-string is passed (containing utf8 encoded bytes)
with some characters that cannot be decoded as ascii. The same
code if run in python3 should generate an error (needs string not
bytes)

Also Add knownfail for ldb.Dn passed utf8 encoded byte string

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13616
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit f8758b3b1f98476469501dd45a7c898950294e05)
lib/ldb/tests/python/api.py
selftest/knownfail