def _helper_assert_about_pager(
    str_to_page,
    pager_cmd,
    use_fallback,
    pipepager,
    default_pager,
):
    """
    Help with asserting about pager.

    str_to_page: what you're paging
    pager_cmd: the string you're passing to pipepager (or None)
    use_default: false if we should actually use pydoc.pipepager, true if we
        instead are going to fallback to pydoc.pager
    """
    util.page_string(str_to_page, pager_cmd)

    if use_fallback:
        default_pager.assert_called_once_with(str_to_page)
        assert pipepager.call_count == 0
    else:
        assert default_pager.call_count == 0
        pipepager.assert_called_once_with(
            str_to_page,
            cmd=pager_cmd
        )

    Help with asserting about pager.

    str_to_page: what you're paging
    pager_cmd: the string you're passing to pipepager (or None)
    use_default: false if we should actually use pydoc.pipepager, true if we
        instead are going to fallback to pydoc.pager
    
test/util_test.py