Searched refs:expected_regexp (Results 1 – 1 of 1) sorted by relevance
307 def __init__(self, expected, expected_regexp=None, extras=None): argument310 self.expected_regexp = expected_regexp328 if self.expected_regexp is None:331 expected_regexp = self.expected_regexp332 if isinstance(expected_regexp, str):333 expected_regexp = re.compile(expected_regexp)334 if not expected_regexp.search(str(exc_value)):337 (expected_regexp.pattern, str(exc_value)),