From c92db7b6dc31756fc461ea9f74e1cd675e3e160d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 19 Jun 2010 18:58:18 +0200 Subject: python: Use samba.tests.TestCase, make sure base class tearDown and setUp methods are called, fix formatting. --- source4/auth/credentials/tests/bindings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/auth/credentials') diff --git a/source4/auth/credentials/tests/bindings.py b/source4/auth/credentials/tests/bindings.py index 30120b3a605..4cb059ddf01 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): -- cgit