def test_drop_class(self, excl, value):
     """
     Return True on non-blacklisted classes and attributes.
     """
     e = exclude(*excl)
     assert e(C.a, value) is False
示例#2
0
 def test_allow(self, excl, value):
     """
     Return True if class or attribute is not excluded.
     """
     e = exclude(*excl)
     assert e(fields(C).a, value) is True
 def test_allow(self, excl, value):
     """
     Return True if class or attribute is not blacklisted.
     """
     e = exclude(*excl)
     assert e(C.a, value) is True
示例#4
0
 def test_drop_class(self, excl, value):
     """
     Return True on non-excluded classes and attributes.
     """
     e = exclude(*excl)
     assert e(fields(C).a, value) is False