

def test_default_direction(self):
    'For any specified field, sort direction defaults to ascending.'
    s = self.cls('path', {
        'sortfield': 'name',
    })
    self.assertEqual(s.field, 'name')
    s.assertEqual(s.direction, 'asc')

dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_sort.py SortTest.test_default_direction/VarMisuse@41/73 `self`->`s`