aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlos Ratis <dastergon@gentoo.org>2013-09-20 16:11:23 +0300
committerPavlos Ratis <dastergon@gentoo.org>2013-09-20 16:11:23 +0300
commitfba5fabffc64d4f97f960bbf9b4f53638c32ef2b (patch)
treef74536811c9ab6e44f241e9da6372a5c18df839e /okupy/tests/unit/test_secondary_password.py
parentdelete ldapobj after test execution (diff)
downloadidentity.gentoo.org-fba5fabffc64d4f97f960bbf9b4f53638c32ef2b.tar.gz
identity.gentoo.org-fba5fabffc64d4f97f960bbf9b4f53638c32ef2b.tar.bz2
identity.gentoo.org-fba5fabffc64d4f97f960bbf9b4f53638c32ef2b.zip
add tearDownClass
Diffstat (limited to 'okupy/tests/unit/test_secondary_password.py')
-rw-r--r--okupy/tests/unit/test_secondary_password.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/okupy/tests/unit/test_secondary_password.py b/okupy/tests/unit/test_secondary_password.py
index 73b574b..62c9890 100644
--- a/okupy/tests/unit/test_secondary_password.py
+++ b/okupy/tests/unit/test_secondary_password.py
@@ -20,6 +20,10 @@ class SecondaryPassword(TestCase):
def setUpClass(cls):
cls.mockldap = MockLdap(vars.DIRECTORY)
+ @classmethod
+ def tearDownClass(cls):
+ del cls.mockldap
+
def setUp(self):
self.mockldap.start()
self.ldapobj = self.mockldap[settings.AUTH_LDAP_SERVER_URI]