summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-02-19 21:56:10 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-02-19 21:56:10 -0500
commitbd52ab66c8b60bb7882a8dd0fb513e2f7519d8e4 (patch)
tree85fc6c9caba92097f329801e47351456e83a6034 /tests
parent643b62343cc3205e1caa9151748c07d75a1d0467 (diff)
tests/events_test.py: defined teardown method in TestEvents class.
- The teardown method is invoked after the end of each test in the TestEvents class. - At the moment the teardown method just purges the node directories.
Diffstat (limited to 'tests')
-rw-r--r--tests/events_test.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/events_test.py b/tests/events_test.py
index 5e5b13f..110dfb4 100644
--- a/tests/events_test.py
+++ b/tests/events_test.py
@@ -37,7 +37,8 @@ from combox.file import (relative_path, purge_dir,
from combox.silo import ComboxSilo
from tests.utils import (get_config, shardedp, dirp, renamedp,
- path_deletedp, rm_nodedirs, rm_configdir)
+ path_deletedp, rm_nodedirs, rm_configdir,
+ purge_nodedirs)
class TestEvents(object):
@@ -221,6 +222,11 @@ class TestEvents(object):
assert not silo.stale(self.lorem_ipsum)
+ def teardown(self):
+ """Cleans up things after each test in this class"""
+ purge_nodedirs(self.config)
+
+
@classmethod
def teardown_class(self):
"""Purge the mess created by this test"""