diff options
author | Lars Wirzenius <liw@iki.fi> | 2008-04-20 22:38:27 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@iki.fi> | 2008-04-20 22:38:27 +0300 |
commit | f70289eadb0d95f90ee2373ed80d63620d199cf4 (patch) | |
tree | 29b29b2fa2563cbfac17509d2a230d090789b13b /obnam | |
parent | ab63839530ddfc8e747a9007725ebfd340fc1fd8 (diff) | |
download | obnam-f70289eadb0d95f90ee2373ed80d63620d199cf4.tar.gz |
Clean up after tests to get rid of cache, store.
Diffstat (limited to 'obnam')
-rw-r--r-- | obnam/appTests.py | 6 |
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()) |