Tests for aptly db recover. #25

This commit is contained in:
Andrey Smirnov
2014-04-05 17:01:16 +04:00
parent 4afa3126e4
commit 173dd775bc
5 changed files with 46 additions and 0 deletions
+3
View File
@@ -192,6 +192,9 @@ class BaseTest(object):
with open(os.path.join(os.environ["HOME"], ".aptly", path), "r") as f:
return f.read()
def delete_file(self, path):
os.unlink(os.path.join(os.environ["HOME"], ".aptly", path))
def check_file_contents(self, path, gold_name, match_prepare=None):
contents = self.read_file(path)