From: Noel Power Date: Mon, 19 Nov 2018 18:38:46 +0000 (+0000) Subject: s4/dsdb/tests/python: PY3 port samba4.ldap.sites X-Git-Tag: tdb-1.3.17~430 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74aabacc34916452eadec1ca5e911e5afdb82d50;p=thirdparty%2Fsamba.git s4/dsdb/tests/python: PY3 port samba4.ldap.sites Fix comparison of ldb.bytes with string Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/tests/python/sites.py b/source4/dsdb/tests/python/sites.py index 867bfcc7ab8..e7d93314d21 100755 --- a/source4/dsdb/tests/python/sites.py +++ b/source4/dsdb/tests/python/sites.py @@ -165,7 +165,7 @@ class SimpleSubnetTests(SitesBaseTests): sites = ret[0]['siteObject'] self.assertEqual(len(sites), 1) - self.assertEqual(sites[0], + self.assertEqual(str(sites[0]), 'CN=testsite2,CN=Sites,%s' % self.ldb.get_config_basedn()) self.assertRaises(subnets.SubnetAlreadyExists,