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/ldap.py | |
parent | 105ebb34405eb458c51ebbfb57b3ce31a41c34e2 (diff) | |
download | samba-c92db7b6dc31756fc461ea9f74e1cd675e3e160d.tar.gz samba-c92db7b6dc31756fc461ea9f74e1cd675e3e160d.tar.xz 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/ldap.py')
-rwxr-xr-x | source4/lib/ldb/tests/python/ldap.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/ldb/tests/python/ldap.py b/source4/lib/ldb/tests/python/ldap.py index db1a47ce642..98ff628dfeb 100755 --- a/source4/lib/ldb/tests/python/ldap.py +++ b/source4/lib/ldb/tests/python/ldap.py @@ -81,6 +81,7 @@ class BasicTests(unittest.TestCase): return ndr_unpack( security.dom_sid,res[0]["objectSid"][0]) def setUp(self): + super(BasicTests, self).setUp() self.ldb = ldb self.gc_ldb = gc_ldb self.base_dn = self.find_basedn(ldb) @@ -2569,8 +2570,11 @@ nTSecurityDescriptor:: """ + desc_base64 finally: self.delete_force(self.ldb, user_dn) + class BaseDnTests(unittest.TestCase): + def setUp(self): + super(BaseDnTests, self).setUp() self.ldb = ldb def test_rootdse_attrs(self): |