1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

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>
This commit is contained in:
Noel Power
2018-11-19 18:38:46 +00:00
committed by Noel Power
parent 397ab3afbd
commit 74aabacc34

View File

@ -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,