def test_ellipsis_fill_in():
    '\n    If an ellipsis marker can be replaced with a single page marker, then\n    we should do so.\n    '
    url = URL('/?page=6')
    controls = get_page_controls(url, current_page=6, total_pages=11)
    assert (controls == [PageControl(text='Previous', url=URL('/?page=5')), PageControl(text='1', url=URL('/')), PageControl(text='2', url=URL('/?page=2')), PageControl(text='3', url=URL('/?page=3')), PageControl(text='4', url=URL('/?page=4')), PageControl(text='5', url=URL('/?page=5')), PageControl(text='6', url=URL('/?page=6'), is_active=True), PageControl(text='7', url=URL('/?page=7')), PageControl(text='8', url=URL('/?page=8')), PageControl(text='9', url=URL('/?page=9')), PageControl(text='10', url=URL('/?page=10')), PageControl(text='11', url=URL('/?page=11')), PageControl(text='Next', url=URL('/?page=7'))])
If an ellipsis marker can be replaced with a single page marker, then
we should do so.
def test_ellipsis_fill_in():
    '\n    If an ellipsis marker can be replaced with a single page marker, then\n    we should do so.\n    '
    url = URL('/?page=6')
    controls = get_page_controls(url, current_page=6, total_pages=11)
    assert (controls == [PageControl(text='Previous', url=URL('/?page=5')), PageControl(text='1', url=URL('/')), PageControl(text='2', url=URL('/?page=2')), PageControl(text='3', url=URL('/?page=3')), PageControl(text='4', url=URL('/?page=4')), PageControl(text='5', url=URL('/?page=5')), PageControl(text='6', url=URL('/?page=6'), is_active=True), PageControl(text='7', url=URL('/?page=7')), PageControl(text='8', url=URL('/?page=8')), PageControl(text='9', url=URL('/?page=9')), PageControl(text='10', url=URL('/?page=10')), PageControl(text='11', url=URL('/?page=11')), PageControl(text='Next', url=URL('/?page=7'))])