Searched refs:expected_regexp (Results 1 – 1 of 1) sorted by relevance
305 def __init__(self, expected, expected_regexp=None, extras=None): argument308 self.expected_regexp = expected_regexp326 if self.expected_regexp is None:329 expected_regexp = self.expected_regexp330 if isinstance(expected_regexp, str):331 expected_regexp = re.compile(expected_regexp)332 if not expected_regexp.search(str(exc_value)):335 (expected_regexp.pattern, str(exc_value)),