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

Method assertTypedEqual

Lib/test/test_re.py:38–46  ·  view source on GitHub ↗
(self, actual, expect, msg=None)

Source from the content-addressed store, hash-verified

36class ReTests(unittest.TestCase):
37
38 def assertTypedEqual(self, actual, expect, msg=None):
39 self.assertEqual(actual, expect, msg)
40 def recurse(actual, expect):
41 if isinstance(expect, (tuple, list)):
42 for x, y in zip(actual, expect):
43 recurse(x, y)
44 else:
45 self.assertIs(type(actual), type(expect), msg)
46 recurse(actual, expect)
47
48 def checkPatternError(self, pattern, errmsg, pos=None):
49 with self.assertRaises(re.PatternError) as cm:

Callers 3

test_basic_re_subMethod · 0.95
test_re_splitMethod · 0.95
test_re_findallMethod · 0.95

Calls 1

assertEqualMethod · 0.45

Tested by

no test coverage detected