diff options
author | Noel Power <noel.power@suse.com> | 2018-11-19 18:38:46 +0000 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2018-12-10 10:38:23 +0100 |
commit | 74aabacc34916452eadec1ca5e911e5afdb82d50 (patch) | |
tree | 32a4e1a0944afba78caf220fa5bae260e8faf75f /source4 | |
parent | 397ab3afbd107e3e5a33b87d2b1221221d21b7d5 (diff) | |
download | samba-74aabacc34916452eadec1ca5e911e5afdb82d50.tar.gz |
s4/dsdb/tests/python: PY3 port samba4.ldap.sites
Fix comparison of ldb.bytes with string
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/dsdb/tests/python/sites.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |