lib/ldb/tests/python: Add test to pass utf8 encoded bytes to ldb.Dn
authorNoel Power <noel.power@suse.com>
Mon, 12 Nov 2018 17:42:51 +0000 (17:42 +0000)
committerDouglas Bagnall <dbagnall@samba.org>
Sat, 12 Jan 2019 23:40:26 +0000 (00:40 +0100)
commitf8758b3b1f98476469501dd45a7c898950294e05
treeb84113ca14db910d4df446cc41594d38a2c4e8ba
parentb6c8ef5fb70c65c04c8269ff95e661e219968767
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
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/tests/python/api.py
selftest/knownfail