

def test_url_same_field(self):
    'url property returns opposite sort direction for current field.'
    s = self.cls('path', {
        'sortfield': 'name',
        'sortdirection': 'asc',
    })
    self.assertEqual(Url(self.url('name')), Url('path?sortfield=name&sortdirection=desc'))

dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_sort.py SortTest.test_url_same_field/VarMisuse@41/77 `s`->`self`