Searched refs:expected_regex (Results 1 – 1 of 1) sorted by relevance
284 self.expected_regex = expected_regexp300 if self.expected_regex is None:303 expected_regexp = self.expected_regex973 def assertRegexpMatches(self, text, expected_regex, msg=None): argument974 if isinstance(expected_regex, basestring):975 expected_regex = re.compile(expected_regex)976 if not expected_regex.search(text):978 msg = '%s: %r not found in %r' % (msg, expected_regex.pattern, text)