MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / test_equal

Method test_equal

example_code/item_113.py:55–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53
54 class MyTestCase(unittest.TestCase):
55 def test_equal(self):
56 n = 5
57 d = 3
58 self.assertEqual(1.667, n / d) # Raises
59
60 suite = unittest.defaultTestLoader.loadTestsFromTestCase(MyTestCase)
61 suite.debug()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected