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/gensec/tests/bindings.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/auth/gensec') diff --git a/source4/auth/gensec/tests/bindings.py b/source4/auth/gensec/tests/bindings.py index b9d80e4f9e..cffcc27aec 100644 --- a/source4/auth/gensec/tests/bindings.py +++ b/source4/auth/gensec/tests/bindings.py @@ -23,16 +23,16 @@ 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 gensec -from samba.tests import env_loadparm +import samba.tests -class CredentialsTests(unittest.TestCase): +class CredentialsTests(samba.tests.TestCase): def setUp(self): + super(CredentialsTests, self).setUp() settings = {} settings["target_hostname"] = "localhost" - settings["lp_ctx"] = env_loadparm() + settings["lp_ctx"] = samba.tests.env_loadparm() self.gensec = gensec.Security.start_client(settings) def test_info(self): -- cgit