s4/dsdb/tests/python: Restore embed NULL tests for Python3
authorNoel Power <noel.power@suse.com>
Tue, 11 Dec 2018 10:46:35 +0000 (10:46 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 13 Dec 2018 23:51:32 +0000 (00:51 +0100)
commit2b3c9b8e6a44420795768d6476ce843886222768
tree9eca3e91f21c99fb9f7b97f6f3d52c1a3206aac7
parentd20f06986ee8f176106446c8ae32f0900ea4e4cf
s4/dsdb/tests/python: Restore embed NULL tests for Python3

commit: 34ca15fb042e42773854c093ad9f1e67696c90ac changed the
test so embedded NULLs were avoided when python3 was used.
This was due to the fact the string comparison function
'locale.strcoll' cannot handle embedded NULLs. This commit

a) Restores the test data using embedded NULLs which was
   not used depending on the python runtime version
b) Removes the problematic calculation of expected sorting order
   and instead uses sort order data stored in files.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/sort.py
source4/dsdb/tests/python/testdata/simplesort.expected [new file with mode: 0644]
source4/dsdb/tests/python/testdata/unicodesort.expected [new file with mode: 0644]
source4/selftest/tests.py