summaryrefslogtreecommitdiff
path: root/obnam
diff options
context:
space:
mode:
authorLars Wirzenius <liw@iki.fi>2008-04-20 22:38:27 +0300
committerLars Wirzenius <liw@iki.fi>2008-04-20 22:38:27 +0300
commitf70289eadb0d95f90ee2373ed80d63620d199cf4 (patch)
tree29b29b2fa2563cbfac17509d2a230d090789b13b /obnam
parentab63839530ddfc8e747a9007725ebfd340fc1fd8 (diff)
downloadobnam-f70289eadb0d95f90ee2373ed80d63620d199cf4.tar.gz
Clean up after tests to get rid of cache, store.
Diffstat (limited to 'obnam')
-rw-r--r--obnam/appTests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/obnam/appTests.py b/obnam/appTests.py
index 4e6629f0..7a52b362 100644
--- a/obnam/appTests.py
+++ b/obnam/appTests.py
@@ -84,6 +84,12 @@ class ApplicationLoadHostBlockTests(unittest.TestCase):
context.be = obnam.backend.init(context.config, context.cache)
self.app = obnam.Application(context)
+ def tearDown(self):
+ for x in ["cache", "store"]:
+ dirname = self.app._context.config.get("backup", x)
+ if os.path.isdir(dirname):
+ shutil.rmtree(dirname)
+
def testCreatesNewHostBlockWhenNoneExists(self):
host = self.app.load_host()
self.failUnlessEqual(host.get_id(), socket.gethostname())