def METHOD_NAME(self):
    request = RequestFactory().get('/?page=1&sort=title')
    result = query_transform(request, page=2)
    # Parse result using Django's QueryDict for ease of assertion
    qd = QueryDict(result)
    self.assertEqual(qd['page'], '2')
    self.assertEqual(qd['sort'], 'title')