Esempio n. 1
0
 def test_two_same_and_one_different(self):
     self.assertEqual(harry.books_cost(["1", "1", "2"]), 16*0.95+8)
Esempio n. 2
0
 def test_many_of_the_same(self):
     self.assertEqual(harry.books_cost(["1", "1", "1"]), 24)
Esempio n. 3
0
 def test_two_of_two_kinds(self):
     self.assertEqual(harry.books_cost(["1", "2"]), 16*0.95)
Esempio n. 4
0
 def test_two_of_the_same(self):
     self.assertEqual(harry.books_cost(["1", "1"]), 16)
Esempio n. 5
0
 def test_one_book(self):
     self.assertEqual(harry.books_cost(["1"]), 8)
Esempio n. 6
0
 def test_empty_bucket(self):
     self.assertEqual(harry.books_cost([]), 0)