

def test_url_other_field(self):
    'url property returns default sort direction for any other field.'
    s = self.cls('path', {
        'sortfield': 'name',
        'sortdirection': 'desc',
    })
    self.assertEqual(Url(s.url('status')), Url('path?sortfield=status&sortdirection=asc'))

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