def test_is_all_selected_when_not_all_selected(self): model = FilterCheckboxListModel() model.set_list(self.data) model._selected.discard('a') self.assertFalse(model._is_all_selected())
def test_is_all_selected_when_not_empty_selected(self): model = FilterCheckboxListModel() model.set_list(self.data) model._empty_selected = False self.assertFalse(model._is_all_selected())
def test_is_all_selected_when_all_selected(self): model = FilterCheckboxListModel() model.set_list(self.data) self.assertTrue(model._is_all_selected())