コード例 #1
0
 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
コード例 #3
0
 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