def test_run_method_should_raise_command_error_when_command_does_not_exist():
 options_mock = Mock()
 args = ('mycommand',)
 help_cmd = HelpCommand()
 with pytest.raises(CommandError):
  help_cmd.run(options_mock, args)

def test_run_method_should_raise_command_error_when_command_does_not_exist ( ) : options_mock = Mock ( ) args = ( 'mycommand' , ) help_cmd = HelpCommand ( ) with pytest . raises ( CommandError ) : help_cmd . run ( options_mock , args )
test helpcommand .