'The limit defaults to the max_limit when there is a max_limit and the
requested limit is greater than the max_limit'

def test_max_limit(self):

    offset = 50
    request = Request(factory.get(u'/', {u'limit': u'11235', u'offset': offset}))
    queryset = self.paginate_queryset(request)
    content = self.get_paginated_content(queryset)
    max_limit = self.pagination.max_limit
    next_offset = (offset + max_limit)
    prev_offset = (offset - max_limit)
    base_url = u'http://testserver/?limit={0}'.format(max_limit)
    next_url = (base_url + u'&offset={0}'.format(next_offset))
    prev_url = (base_url + u'&offset={0}'.format(prev_offset))
    assert (queryset == list(range(51, 66)))
    assert (content.get(u'next') == next_url)
    assert (content.get(u'previous') == prev_url)
