diff options
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()) |