def test_pagesize_url(self):
    '``pagesize_url`` updates pagesize in URL (and jumps to page 1).'
    from moztrap.view.lists.templatetags.pagination import pagesize_url
    request = Mock()
    request.get_full_path.return_value = 'http://localhost/?pagenumber=2&pagesize=10'
    self.assertEqual(pagesize_url(request, 20), 'http://localhost/?pagenumber=1&pagesize=20')
``pagesize_url`` updates pagesize in URL (and jumps to page 1).
def test_pagesize_url(self):
    
    from moztrap.view.lists.templatetags.pagination import pagesize_url
    request = Mock()
    request.get_full_path.return_value = 'http://localhost/?pagenumber=2&pagesize=10'
    self.assertEqual(pagesize_url(request, 20), 'http://localhost/?pagenumber=1&pagesize=20')