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