def test_first_page_in_long_pagination_controls():
    '\n    First page in long pagination controls, should render as:\n    Previous [1] 2 3 4 5 ... 49 50 Next\n    '
    url = URL('/')
    controls = get_page_controls(url, current_page=1, total_pages=50)
    assert (controls == [PageControl(text='Previous', is_disabled=True), PageControl(text='1', is_active=True, 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='…', is_disabled=True), PageControl(text='49', url=URL('/?page=49')), PageControl(text='50', url=URL('/?page=50')), PageControl(text='Next', url=URL('/?page=2'))])
First page in long pagination controls, should render as:
Previous [1] 2 3 4 5 ... 49 50 Next
def test_first_page_in_long_pagination_controls():
    '\n    First page in long pagination controls, should render as:\n    Previous [1] 2 3 4 5 ... 49 50 Next\n    '
    url = URL('/')
    controls = get_page_controls(url, current_page=1, total_pages=50)
    assert (controls == [PageControl(text='Previous', is_disabled=True), PageControl(text='1', is_active=True, 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='…', is_disabled=True), PageControl(text='49', url=URL('/?page=49')), PageControl(text='50', url=URL('/?page=50')), PageControl(text='Next', url=URL('/?page=2'))])