Example #1
0
 def test_freeze_filters(self):
     data = [
         [1, 2, 3],
         [2, 3, 4]
     ]
     s = FilterableSheet(data)
     s.add_filter(EvenRowFilter())
     s.freeze_filters()
     assert s.row[0] == [1, 2, 3]
     assert s.column[0] == [1]
Example #2
0
 def test_non_filter(self):
     data = []
     s = FilterableSheet(data)
     s.filter("abc")  # bang