def test_all_false_returns_false(self): attribute_filter = AttributeFilter({ "a": False, "b": False, "c": False }) self.assertFalse(attribute_filter.are_all_attributes_visible())
def test_invisible_sub_filter_returns_false(self): attribute_filter = AttributeFilter({ "a": { "a": False }, "b": True, "c": True }) self.assertFalse(attribute_filter.are_all_attributes_visible())
def test_all_true_returns_true(self): attribute_filter = AttributeFilter({"a": True, "b": True, "c": True}) self.assertTrue(attribute_filter.are_all_attributes_visible())
def test_invisible_sub_filter_returns_false(self): attribute_filter = AttributeFilter({"a": {"a": False}, "b": True, "c": True}) self.assertFalse(attribute_filter.are_all_attributes_visible())
def test_all_false_returns_false(self): attribute_filter = AttributeFilter({"a": False, "b": False, "c": False}) self.assertFalse(attribute_filter.are_all_attributes_visible())