Exemplo n.º 1
0
 def test_should_return_command_when_value_is_true(self):
     self.assertEqual(
         'status', determine_command_from_arguments({'update': False,
                                                     'status': True, 'destroy': False}))
Exemplo n.º 2
0
 def test_should_not_return_commands_not_matching_a_z(self):
     self.assertEqual(
         None, determine_command_from_arguments({'upDate': False,
                                                 'destr0YeR': True, 'status': False}))
Exemplo n.º 3
0
 def test_should_return_none_when_no_command_is_true(self):
     self.assertEqual(
         None, determine_command_from_arguments({'update': False,
                                                 'status': False}))