def test_multiplication(self): five = Dollar(5) assert Dollar(10) == five.times(2) assert Dollar(15) == five.times(3)
def test_multiplication(self): """ใในใ""" five = Dollar(5) self.assertEqual(Dollar(10), five.times(2), "5 * 2") self.assertEqual(Dollar(15), five.times(3), "5 * 3")