Exemplo n.º 1
0
 def test_all_false_returns_false(self):
     attribute_filter = AttributeFilter({
         "a": False,
         "b": False,
         "c": False
     })
     self.assertFalse(attribute_filter.are_all_attributes_visible())
Exemplo n.º 2
0
 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())
Exemplo n.º 3
0
 def test_all_true_returns_true(self):
     attribute_filter = AttributeFilter({"a": True, "b": True, "c": True})
     self.assertTrue(attribute_filter.are_all_attributes_visible())
Exemplo n.º 4
0
 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())
Exemplo n.º 5
0
 def test_all_false_returns_false(self):
     attribute_filter = AttributeFilter({"a": False, "b": False, "c": False})
     self.assertFalse(attribute_filter.are_all_attributes_visible())
Exemplo n.º 6
0
 def test_all_true_returns_true(self):
     attribute_filter = AttributeFilter({"a": True, "b": True, "c": True})
     self.assertTrue(attribute_filter.are_all_attributes_visible())