Example #1
0
 def test_multiplication(self):
     five = Dollar(5)
     assert Dollar(10) == five.times(2)
     assert Dollar(15) == five.times(3)
Example #2
0
 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")