Exemple #1
0
 def test_free_lower(self):
     with mock.patch('builtins.input', side_effect=["free"]):
         assert print_subscription_cost() == 0
Exemple #2
0
 def test_platinum_lower(self):
     with mock.patch('builtins.input', side_effect=["platinum"]):
         assert print_subscription_cost() == 60
Exemple #3
0
 def test_silver(self):
     with mock.patch('builtins.input', side_effect=["Silver"]):
         assert print_subscription_cost() == 40
Exemple #4
0
 def test_bronze(self):
     with mock.patch('builtins.input', side_effect=["Bronze"]):
         assert print_subscription_cost() == 30
Exemple #5
0
 def test_gold(self):
     with mock.patch('builtins.input', side_effect=["Gold"]):
         assert print_subscription_cost() == 50