traffic: new version of model with packet_rate, version number
[samba.git] / python / samba / tests / dsdb.py
index 1537838ddb8fa3947015b43b8b7c927160f75444..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)
@@ -737,13 +737,12 @@ class DsdbFullScanTests(TestCase):
         self.creds.guess(self.lp)
         self.session = system_session()
 
-
     def test_sam_ldb_open_no_full_scan(self):
         try:
             self.samdb = SamDB(session_info=self.session,
                                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")