Searched refs:expected_regexp (Results 1 – 2 of 2) sorted by relevance
| /external/autotest/client/common_lib/test_utils/ |
| D | unittest.py | 281 def __init__(self, expected, test_case, expected_regexp=None): argument 284 self.expected_regex = expected_regexp 303 expected_regexp = self.expected_regex 304 if isinstance(expected_regexp, basestring): 305 expected_regexp = re.compile(expected_regexp) 306 if not expected_regexp.search(str(exc_value)): 308 (expected_regexp.pattern, str(exc_value))) 955 def assertRaisesRegexp(self, expected_exception, expected_regexp, argument 967 context = _AssertRaisesContext(expected_exception, self, expected_regexp)
|
| /external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/ |
| D | fake_filesystem_test.py | 502 def assertRaisesWithRegexpMatch(self, expected_exception, expected_regexp, argument 517 if isinstance(expected_regexp, str): 518 expected_regexp = re.compile(expected_regexp) 520 expected_regexp.search(str(err)), 521 '"%s" does not match "%s"' % (expected_regexp.pattern, str(err)))
|