

def cls(self, full_path, GET):
    'Construct mock request; instantiate and return Sort object.'
    request = Mock()
    request.GET = GET
    request.get_full_path.return_value = full_path
    from moztrap.view.lists.sort import Sort
    return Sort(request)

dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_sort.py SortTest.cls/original