diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-06-19 18:58:18 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-06-19 22:46:45 +0200 |
commit | c92db7b6dc31756fc461ea9f74e1cd675e3e160d (patch) | |
tree | 14a1cb47c782b42ab023e1e462447ee55ddeb179 /source4/lib/ldb/tests/python/urgent_replication.py | |
parent | 105ebb34405eb458c51ebbfb57b3ce31a41c34e2 (diff) | |
download | samba-c92db7b6dc31756fc461ea9f74e1cd675e3e160d.tar.gz samba-c92db7b6dc31756fc461ea9f74e1cd675e3e160d.tar.bz2 samba-c92db7b6dc31756fc461ea9f74e1cd675e3e160d.zip |
python: Use samba.tests.TestCase, make sure base class tearDown and
setUp methods are called, fix formatting.
Diffstat (limited to 'source4/lib/ldb/tests/python/urgent_replication.py')
-rwxr-xr-x | source4/lib/ldb/tests/python/urgent_replication.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/ldb/tests/python/urgent_replication.py b/source4/lib/ldb/tests/python/urgent_replication.py index 78200efc30..26f7d9b46d 100755 --- a/source4/lib/ldb/tests/python/urgent_replication.py +++ b/source4/lib/ldb/tests/python/urgent_replication.py @@ -15,6 +15,7 @@ from samba.auth import system_session from ldb import (SCOPE_BASE, LdbError, ERR_NO_SUCH_OBJECT, Message, MessageElement, Dn, FLAG_MOD_REPLACE) from samba.samdb import SamDB +import samba.tests from subunit.run import SubunitTestRunner import unittest @@ -37,7 +38,7 @@ host = args[0] lp = sambaopts.get_loadparm() creds = credopts.get_credentials(lp) -class UrgentReplicationTests(unittest.TestCase): +class UrgentReplicationTests(samba.tests.TestCase): def delete_force(self, ldb, dn): try: @@ -52,6 +53,7 @@ class UrgentReplicationTests(unittest.TestCase): return res[0]["defaultNamingContext"][0] def setUp(self): + super(UrgentReplicationTests, self).setUp() self.ldb = ldb self.base_dn = self.find_basedn(ldb) |