]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python/tests/dsdb: use correct variable names
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 11 Oct 2018 00:43:28 +0000 (13:43 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 1 Nov 2018 04:08:11 +0000 (05:08 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
python/samba/tests/dsdb.py

index 9eafb7fd8efcb741012d2663bdba31feadfeb65c..2432c3cd5098bf336b370947d3620a08f3f3a4e0 100644 (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")