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