def test_the_hypotenuse(self): Geometry.square = MagicMock(method='square') Geometry.square.side_effect = [9, 16] result = Geometry.hypotenuse(3, 4) self.assertEqual(result, 5)
def test_the_hypotenuse(self): result = Geometry.hypotenuse(3, 4) self.assertEqual(result, 5)