combox

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

commit 951a277e0e45cedfd05f4c1acbbc0c7cd1ca81df
parent b15e57265e8593e3a085f0b44858f60878289435
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Wed, 18 Feb 2015 23:47:38 -0500

tests/utils.py: added  rm_configdir function

rm_configdir() will be used to remove the test-config/ directory and
will be called in all teardown methods of Test classes.

Diffstat:
tests/utils.py | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/tests/utils.py b/tests/utils.py @@ -68,6 +68,16 @@ def rm_nodedirs(config): print "Problem deleting", node, e +def rm_configdir(): + """Removes the combox test config directory.""" + config_dir = path.join('tests', 'test-config') + try: + purge_dir(config_dir) + rmdir(config_dir) + except OSError, e: + print "Problem deleting", config_dir, e + + def shardedp(f): """Checks if file's shards exists in the node directories"""