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

Method assertTypedEquals

Lib/test/test_fractions.py:295–298  ·  view source on GitHub ↗

Asserts that both the types and values are the same.

(self, expected, actual)

Source from the content-addressed store, hash-verified

293class FractionTest(unittest.TestCase):
294
295 def assertTypedEquals(self, expected, actual):
296 """Asserts that both the types and values are the same."""
297 self.assertEqual(type(expected), type(actual))
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."""

Callers 10

testConversionsMethod · 0.95
testRoundMethod · 0.95
testArithmeticMethod · 0.95
testLargeArithmeticMethod · 0.95
testMixedArithmeticMethod · 0.95
testMixedDivisionMethod · 0.95
testMixedPowerMethod · 0.95

Calls 1

assertEqualMethod · 0.45

Tested by

no test coverage detected