Fix system tests. #15

This commit is contained in:
Andrey Smirnov
2014-07-28 16:20:38 +04:00
parent bf91744078
commit 8407e70347
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -53,7 +53,8 @@ class EditMirror5Test(BaseTest):
runCmd = "aptly mirror edit -filter= mirror5"
def check(self):
def removeDates(s):
return re.sub(r"(Date|Valid-Until): [,0-9:+A-Za-z -]+\n", "", s)
self.check_output()
self.check_cmd_output("aptly mirror show mirror5", "mirror_show")
self.check_cmd_output("aptly mirror show mirror5", "mirror_show", match_prepare=removeDates)