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/auth/credentials/tests | |
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/auth/credentials/tests')
-rw-r--r-- | source4/auth/credentials/tests/bindings.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/auth/credentials/tests/bindings.py b/source4/auth/credentials/tests/bindings.py index 30120b3a60..4cb059ddf0 100644 --- a/source4/auth/credentials/tests/bindings.py +++ b/source4/auth/credentials/tests/bindings.py @@ -23,11 +23,13 @@ Note that this just tests the bindings work. It does not intend to test the functionality, that's already done in other tests. """ -import unittest from samba import credentials +import samba.tests + +class CredentialsTests(samba.tests.TestCase): -class CredentialsTests(unittest.TestCase): def setUp(self): + super(CredentialsTests, self).setUp() self.creds = credentials.Credentials() def test_set_username(self): |