def test_last_page_in_long_pagination_controls():
    '\n    Last page in long pagination controls, should render as:\n    Previous 1 2 ... 46 47 48 49 [50] Next\n    '
    url = URL('/?page=50')
    controls = get_page_controls(url, current_page=50, total_pages=50)
    assert (controls == [PageControl(text='Previous', url=URL('/?page=49')), PageControl(text='1', url=URL('/')), PageControl(text='2', url=URL('/?page=2')), PageControl(text='…', is_disabled=True), PageControl(text='46', url=URL('/?page=46')), PageControl(text='47', url=URL('/?page=47')), PageControl(text='48', url=URL('/?page=48')), PageControl(text='49', url=URL('/?page=49')), PageControl(text='50', is_active=True, url=URL('/?page=50')), PageControl(text='Next', is_disabled=True)])
Last page in long pagination controls, should render as:
Previous 1 2 ... 46 47 48 49 [50] Next
def test_last_page_in_long_pagination_controls():
    '\n    Last page in long pagination controls, should render as:\n    Previous 1 2 ... 46 47 48 49 [50] Next\n    '
    url = URL('/?page=50')
    controls = get_page_controls(url, current_page=50, total_pages=50)
    assert (controls == [PageControl(text='Previous', url=URL('/?page=49')), PageControl(text='1', url=URL('/')), PageControl(text='2', url=URL('/?page=2')), PageControl(text='…', is_disabled=True), PageControl(text='46', url=URL('/?page=46')), PageControl(text='47', url=URL('/?page=47')), PageControl(text='48', url=URL('/?page=48')), PageControl(text='49', url=URL('/?page=49')), PageControl(text='50', is_active=True, url=URL('/?page=50')), PageControl(text='Next', is_disabled=True)])