def test_page_string_excepts_keyboard_interrupt_if_not_less(pipepager_mock):
    """
    Do not fail when user hits ctrl-c while in pager.
    """
    try:
        util.page_string('page me plz', 'cat')
    except KeyboardInterrupt:
        raise AssertionError('Should not have got this far')
    pipepager_mock.assert_called_once_with('page me plz', cmd='cat')

    Do not fail when user hits ctrl-c while in pager.
    
test/util_test.py