コード例 #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())
コード例 #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())
コード例 #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())
コード例 #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())
コード例 #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())
コード例 #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())