MCPcopy Index your code
hub / github.com/python/cpython / assertAllRaise

Method assertAllRaise

Lib/test/test_fstring.py:33–37  ·  view source on GitHub ↗
(self, exception_type, regex, error_strings)

Source from the content-addressed store, hash-verified

31
32class TestCase(unittest.TestCase):
33 def assertAllRaise(self, exception_type, regex, error_strings):
34 for str in error_strings:
35 with self.subTest(str=str):
36 with self.assertRaisesRegex(exception_type, regex):
37 eval(str)
38
39 def test__format__lookup(self):
40 # Make sure __format__ is looked up on the type, not the instance.

Calls 2

subTestMethod · 0.95
assertRaisesRegexMethod · 0.95

Tested by

no test coverage detected