1000
1000
def assertNotRegexpMatches(self, text, unexpected_regexp, msg=None):
1001
1001
"""Fail the test if the text matches the regular expression."""
1003
1003
unexpected_regexp = re.compile(unexpected_regexp)
1004
1004
match = unexpected_regexp.search(text)