Exemple #1
0
 def test1(self):
     # comment - 20% tip for 20 dollar
     tip = tip_amount(20,0.2)
     self.assertEqual(tip,4)
Exemple #2
0
 def test2(self):
     # 15% tip of 40 dollar
     tip = tip_amount(40,0.15)
     self.assertEqual(tip,8)