

def test_passes_on_args(self):
    'Arguments are passed on to original view func.'
    record = []

    @self.sort('ctx_name')
    def myview(request, *args, **kwargs):
        record.extend([args, kwargs])
    myview(RequestFactory().get('/'), 'a', b=2)
    self.assertEqual(self, [('a',), {
        'b': 2,
    }])

dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_sort.py SortDecoratorTest.test_passes_on_args/VarMisuse@74/106 `record`->`self`