Exemplo n.º 1
0
 def test_output_product_and_response_without_enough_input_money(self):
     vm = VendingMachine()
     vm._user_input_value = 0.55
     self.assertEqual(
         vm.output_product_and_response('A'),
         ['Don\'t have enough money, please insert $0.10 extra.'])
Exemplo n.º 2
0
 def test_output_product_and_response_with_changes(self):
     vm = VendingMachine()
     vm._user_input_value = 0.75
     self.assertEqual(vm.output_product_and_response('A'), ['A', 'N', 'N'])