def _helper_run_eg_responds_to_args_correctly(
    args,
    mock_resolved_config,
    mock_show_list,
    mock_show_version,
    mock_handle_program,
    mock_parse_args,
    mock_no_editor,
    mock_edit_custom,
    resolved_config='stand-in-config',
    call_show_list=False,
    call_show_version=False,
    call_handle_program=False,
    call_no_editor=False,
    call_edit_custom=False,
):
    """
    Helper method for verifying the results of calls to run_eg.
    """
    mock_resolved_config.return_value = resolved_config
    mock_parse_args.return_value = args

    core.run_eg()

    if (call_show_list):
        mock_show_list.assert_called_once_with(resolved_config)
    else:
        assert mock_show_list.call_args_list == []

    if (call_show_version):
        mock_show_version.assert_called_once_with()
    else:
        assert mock_show_version.call_args_list == []

    if (call_no_editor):
        mock_no_editor.assert_called_once_with()
    else:
        assert mock_no_editor.call_args_list == []

    if (call_edit_custom):
        mock_edit_custom.assert_called_once_with(args.program, resolved_config)
    else:
        assert mock_edit_custom.call_args_list == []

    if (call_handle_program):
        mock_handle_program.assert_called_once_with(
            args.program, resolved_config
        )
    else:
        assert mock_handle_program.call_args_list == []

    Helper method for verifying the results of calls to run_eg.
    
test/core_test.py