

def test_order_by_multiple_desc(self):
    'order_by property prepends - to each field if multiple.'
    s = self.cls('path', {
        'sortfield': 'one,two',
        'sortdirection': 'desc',
    })
    self.assertEqual(s.order_by, ('-one', '-two'))

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