

def test_dir_same_field(self):
    'dir property returns current sort direction for current field.'
    s = self.cls('path', {
        'sortfield': 'name',
        'sortdirection': 'asc',
    })
    self.assertEqual(s.dir('name'), 'asc')

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