'When the offset is not a multiple of the limit we get some edge cases:
* The first page should still be offset zero.
* We may end up displaying an extra page in the pagination control.'

def test_single_offset(self):

    request = Request(factory.get(u'/', {u'limit': 5, u'offset': 1}))
    queryset = self.paginate_queryset(request)
    content = self.get_paginated_content(queryset)
    context = self.get_html_context()
    assert (queryset == [2, 3, 4, 5, 6])
    assert (content == {u'results': [2, 3, 4, 5, 6], u'previous': u'http://testserver/?limit=5', u'next': u'http://testserver/?limit=5&offset=6', u'count': 100})
    assert (context == {u'previous_url': u'http://testserver/?limit=5', u'next_url': u'http://testserver/?limit=5&offset=6', u'page_links': [PageLink(u'http://testserver/?limit=5', 1, False, False), PageLink(u'http://testserver/?limit=5&offset=1', 2, True, False), PageLink(u'http://testserver/?limit=5&offset=6', 3, False, False), PAGE_BREAK, PageLink(u'http://testserver/?limit=5&offset=96', 21, False, False)]})
