diff --git a/ietf/tests.py b/ietf/tests.py index d88b8ffe4..133fb52b3 100644 --- a/ietf/tests.py +++ b/ietf/tests.py @@ -304,6 +304,10 @@ class UrlTestCase(TestCase): else: testtext = reduce_text(response.content) goodtext = reduce_text(goodhtml) + # Always ignore some stuff + for regex in module.ignores["always"]: + testtext = re.sub(regex, "", testtext) + goodtext = re.sub(regex, "", goodtext) if "ignore" in codes: ignores = codes["ignore"].split("/") for ignore in ignores: diff --git a/test/ignore/always/footer.regex b/test/ignore/always/footer.regex new file mode 100644 index 000000000..ef9bff254 --- /dev/null +++ b/test/ignore/always/footer.regex @@ -0,0 +1 @@ +Made with django *v\d+\.\d+, (Mon|Tue|Wed|Thu|Fri|Sat|Sun), \d+ (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) 20\d\d - web[-a-z]+@ietf.org \ No newline at end of file