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/passwords.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/passwords.py')
-rwxr-xr-x | source4/lib/ldb/tests/python/passwords.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/tests/python/passwords.py b/source4/lib/ldb/tests/python/passwords.py index b3e6fc949e..dd5a1ca126 100755 --- a/source4/lib/ldb/tests/python/passwords.py +++ b/source4/lib/ldb/tests/python/passwords.py @@ -12,7 +12,6 @@ import optparse import sys -import time import base64 import os @@ -75,6 +74,7 @@ class PasswordTests(samba.tests.TestCase): return res[0]["defaultNamingContext"][0] def setUp(self): + super(PasswordTests, self).setUp() self.ldb = ldb self.base_dn = self.find_basedn(ldb) @@ -558,6 +558,7 @@ userPassword: thatsAcomplPASS4 "userPassword": ["thatsAcomplPASS1", "thatsAcomplPASS1"] }) def tearDown(self): + super(PasswordTests, self).tearDown() self.delete_force(self.ldb, "cn=testuser,cn=users," + self.base_dn) self.delete_force(self.ldb, "cn=testuser2,cn=users," + self.base_dn) # Close the second LDB connection (with the user credentials) |