

def test_order_by_desc(self):
    'order_by property return "-field" for descending sort on "field".'
    s = self.cls('path', {
        'sortfield': 'name',
        'sortdirection': 'desc',
    })
    self.assertEqual(self.order_by, ('-name',))

dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_sort.py SortTest.test_order_by_desc/VarMisuse@39/80 `s`->`self`