Exemplo n.º 1
0
 def test_fiction_category_charge_part_two(self):
     output = calculate_based_on_category("fiction", 10)
     self.assertEqual(output, 30)
Exemplo n.º 2
0
 def test_fiction_category_charge(self):
     output = calculate_based_on_category("fiction", 2)
     self.assertEqual(output, 6)
Exemplo n.º 3
0
 def test_novels_category_max_charge_part_two(self):
     output = calculate_based_on_category("novels", 10)
     self.assertEqual(output, 15)
Exemplo n.º 4
0
 def test_novels_category_max_charge(self):
     output = calculate_based_on_category("novels", 4)
     self.assertEqual(output, 6)
Exemplo n.º 5
0
 def test_regular_category_max_charge_part_two(self):
     output = calculate_based_on_category("regular", 5)
     self.assertEqual(output, 6.5)
Exemplo n.º 6
0
 def test_regular_category_max_charge(self):
     output = calculate_based_on_category("regular", 3)
     self.assertEqual(output, 3.5)