def test_our_double_with_add(self, fake_add): """Our double function should work by adding.""" result = our_module.double(5) self.assertEqual(fake_add.call_count, 1)
def test_our_double_with_multiply(self, fake_multiply): """Our double function should not work by multiplying.""" result = our_module.double(5) self.assertEqual(fake_multiply.call_count, 0)