combox

split and encrypted files between online file storage providers
git clone git://git.ricketyspace.net/combox.git
Log | Files | Refs

commit bd52ab66c8b60bb7882a8dd0fb513e2f7519d8e4
parent 643b62343cc3205e1caa9151748c07d75a1d0467
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Thu, 19 Feb 2015 21:56:10 -0500

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:
tests/events_test.py | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 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"""