Home
last modified time | relevance | path

Searched refs:expected_regexp (Results 1 – 2 of 2) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/
Dcase.py100 def __init__(self, expected, test_case, expected_regexp=None): argument
103 self.expected_regexp = expected_regexp
120 if self.expected_regexp is None:
123 expected_regexp = self.expected_regexp
124 if isinstance(expected_regexp, basestring):
125 expected_regexp = re.compile(expected_regexp)
126 if not expected_regexp.search(str(exc_value)):
128 (expected_regexp.pattern, str(exc_value)))
971 def assertRaisesRegexp(self, expected_exception, expected_regexp, argument
983 context = _AssertRaisesContext(expected_exception, self, expected_regexp)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
Dtest_assertions.py155 for i, expected_regexp in enumerate(errors):
163 expected_regexp=expected_regexp):