Searched refs:expected_regexp (Results 1 – 1 of 1) sorted by relevance
231 def __init__(self, expected, expected_regexp=None, extras=None): argument234 self.expected_regexp = expected_regexp252 if self.expected_regexp is None:255 expected_regexp = self.expected_regexp256 if isinstance(expected_regexp, str):257 expected_regexp = re.compile(expected_regexp)258 if not expected_regexp.search(str(exc_value)):260 (expected_regexp.pattern, str(exc_value)),