def test_handle_program_no_entries(
    mock_resolve_program,
    mock_get_contents,
    mock_format,
    mock_page_string,
):
    """
    We should do the right thing if there are no entries for a given program.
    """
    program = 'cp'
    test_config = _create_config()

    mock_resolve_program.return_value = program

    util.handle_program(program, test_config)

    mock_resolve_program.assert_called_once_with(
        program,
        test_config
    )

    # We should have aborted and not called any of the
    # other methods.
    assert mock_get_contents.call_count == 0
    assert mock_format.call_count == 0
    assert mock_page_string.call_count == 0

    We should do the right thing if there are no entries for a given program.
    
test/util_test.py