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

Method assertTypedTupleEquals

Lib/test/test_fractions.py:300–303  ·  view source on GitHub ↗

Asserts that both the types and values in the tuples are the same.

(self, expected, actual)

Source from the content-addressed store, hash-verified

298 self.assertEqual(expected, actual)
299
300 def assertTypedTupleEquals(self, expected, actual):
301 """Asserts that both the types and values in the tuples are the same."""
302 self.assertTupleEqual(expected, actual)
303 self.assertListEqual(list(map(type, expected)), list(map(type, actual)))
304
305 def assertRaisesMessage(self, exc_type, message,
306 callable, *args, **kwargs):

Callers 2

testLargeArithmeticMethod · 0.95

Calls 3

listClass · 0.85
assertTupleEqualMethod · 0.80
assertListEqualMethod · 0.80

Tested by

no test coverage detected