s4/dsdb/tests/python: PY3 port samba4.sam.python test
authorNoel Power <noel.power@suse.com>
Mon, 5 Nov 2018 20:43:42 +0000 (20:43 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:21 +0000 (10:38 +0100)
commitac7baa6e92d46bf2b8734d25db49dc28e1bfd2c9
treec87babed25310f74a3ae10e38233995aa8a44dd2
parent72921682558b0eafc1e8cd7b9ae74e81c5c2b9dc
s4/dsdb/tests/python: PY3 port samba4.sam.python test

Misc changes to ensure samba4.sam.python test will run under
python2/python3

* various objectSID values when formatted need to be treated
as strings for tests.

* DOMAIN_RID_USERS, DOMAIN_RID_DOMAIN_MEMBERS, DOMAIN_RID_DCS,
  DOMAIN_RID_READONLY_DCS are all integers (but attibutes are
  ldb.bytes in PY3, need to adust various assertEquals.
* Make sure password is encoded correctly

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/sam.py