def test_help_command_should_exit_status_error_when_cmd_does_not_exist(script):
 result = script.pip('help', 'mycommand', expect_error=True)
 assert (result.returncode == ERROR)

def test_help_command_should_exit_status_error_when_cmd_does_not_exist ( script ) : result = script . pip ( 'help' , 'mycommand' , expect_error = True ) assert ( result . returncode == ERROR )
test help command for non-existing command .