def test_url_same_field(self):
        s = self.cls("path", {"sortfield": "name", "sortdirection": "asc"})
        self.assertEqual(
            Url(s.url("name")), Url("path?sortfield=name&sortdirection=desc"))
url property returns opposite sort direction for current field.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_sort.py/SortTest.test_url_same_field