def test_pagenumber_url(self):
    '``pagenumber_url`` filter updates pagenumber in URL.'
    from moztrap.view.lists.templatetags.pagination import pagenumber_url
    request = Mock()
    request.get_full_path.return_value = 'http://localhost/?pagenumber=2&pagesize=10'
    self.assertEqual(pagenumber_url(request, 1), 'http://localhost/?pagenumber=1&pagesize=10')
``pagenumber_url`` filter updates pagenumber in URL.
def test_pagenumber_url(self):
    
    from moztrap.view.lists.templatetags.pagination import pagenumber_url
    request = Mock()
    request.get_full_path.return_value = 'http://localhost/?pagenumber=2&pagesize=10'
    self.assertEqual(pagenumber_url(request, 1), 'http://localhost/?pagenumber=1&pagesize=10')