Check contents of contents index being generated. #142

This commit is contained in:
Andrey Smirnov
2015-04-02 01:19:51 +03:00
parent 10876b99f5
commit 4e3284cd98
6 changed files with 1527 additions and 0 deletions
+2
View File
@@ -236,6 +236,8 @@ class BaseTest(object):
self.verify_match(self.get_gold(gold_name), contents, match_prepare=match_prepare)
except:
if self.captureResults:
if match_prepare is not None:
contents = match_prepare(contents)
with open(self.get_gold_filename(gold_name), "w") as f:
f.write(contents)
else: