diff options
Diffstat (limited to 'okupy/tests/unit/test_lists.py')
-rw-r--r-- | okupy/tests/unit/test_lists.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/okupy/tests/unit/test_lists.py b/okupy/tests/unit/test_lists.py index d34e27c..8cdcb6f 100644 --- a/okupy/tests/unit/test_lists.py +++ b/okupy/tests/unit/test_lists.py @@ -15,12 +15,17 @@ class ListsUnitTests(OkupyTestCase): def setUpClass(cls): cls.mockldap = MockLdap(vars.DIRECTORY) + @classmethod + def tearDownClass(cls): + del cls.mockldap + def setUp(self): self.mockldap.start() - self.ldapobject = self.mockldap[settings.AUTH_LDAP_SERVER_URI] + self.ldapobj = self.mockldap[settings.AUTH_LDAP_SERVER_URI] def tearDown(self): self.mockldap.stop() + del self.ldapobj def test_devlist_url_resolves_to_lists_view(self): found = resolve('/devlist/') |