1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

python/tests/dsdb: use correct variable names

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
This commit is contained in:
Douglas Bagnall
2018-10-11 13:43:28 +13:00
committed by Douglas Bagnall
parent cf7f14a4be
commit 5304ea44c9

View File

@ -468,7 +468,7 @@ class DsdbTests(TestCase):
try:
self.samdb.modify(msg)
if not allow_reference:
sel.fail("No exception should get %s" % msg_exp)
self.fail("No exception should get %s" % msg_exp)
except ldb.LdbError as e:
if allow_reference:
self.fail("Should have not raised an exception: %s" % e)
@ -743,6 +743,6 @@ class DsdbFullScanTests(TestCase):
credentials=self.creds,
lp=self.lp,
options=["disable_full_db_scan_for_self_test:1"])
except LdbError as err:
except ldb.LdbError as err:
estr = err.args[1]
self.fail("sam.ldb required a full scan to start up")