Пример #1
0
 def test_sort_viewer_set_all(self):
     viewer = PerspectiveViewer()
     for sort in Sort:
         viewer.sort = [["a", sort]]
         assert viewer.sort == [["a", sort.value]]
Пример #2
0
 def test_sort_viewer_setattr(self):
     viewer = PerspectiveViewer()
     viewer.sort = [["a", Sort.COL_DESC_ABS]]
     assert viewer.sort == [["a", "col desc abs"]]