1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

domain_backup test: fix py2.6 incompatible format

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2018-09-21 11:18:19 +12:00 committed by Andrew Bartlett
parent 26dd30d6d3
commit 4e592c9167

View File

@ -320,9 +320,9 @@ class DomainBackupBase(SambaToolCmdTest, TestCaseInTempDir):
"CN=Infrastructure,DC=ForestDnsZones," + forest_dn}
for role, dn in fsmos.items():
owner = get_fsmo_roleowner(samdb, ldb.Dn(samdb, dn), role)
self.assertTrue("CN={},".format(server) in owner.extended_str(),
self.assertTrue("CN={0},".format(server) in owner.extended_str(),
"Expected %s to own FSMO role %s" % (server, role))
self.assertTrue("CN={},".format(exclude_server)
self.assertTrue("CN={0},".format(exclude_server)
not in owner.extended_str(),
"%s found as FSMO %s role owner" % (server, role))