combox

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

commit f1bfe57f02e37049f585211d02ed6206f62e4ee8
parent b83c93457ff73a02ba48e5422386b3c1b0534abe
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Wed, 18 Mar 2015 21:45:58 -0400

tests/events_test.py: paths in `purge_list' is purged after executing each test method.

Diffstat:
tests/events_test.py | 15++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/tests/events_test.py b/tests/events_test.py @@ -333,6 +333,14 @@ class TestEvents(object): if path.exists(silo_path): os.remove(silo_path) + for f in self.purge_list: + if path.exists(f) and path.isfile(f): + os.remove(f) + elif path.exists(f) and path.isdir(f): + purge_dir(f) + os.rmdir(f) + + @classmethod def teardown_class(self): """Purge the mess created by this test""" @@ -348,10 +356,3 @@ class TestEvents(object): rm_nodedirs(self.config) rm_configdir() - - for f in self.purge_list: - if path.exists(f) and path.isfile(f): - os.remove(f) - elif path.exists(f) and path.isdir(f): - purge_dir(f) - os.rmdir(f)