def test_drop_class(self, incl, value): """ Return False on non-whitelisted classes and attributes. """ i = include(*incl) assert i(C.a, value) is False
def test_drop_class(self, incl, value): """ Return False on non-included classes and attributes. """ i = include(*incl) assert i(fields(C).a, value) is False
def test_allow(self, incl, value): """ Return True if a class or attribute is whitelisted. """ i = include(*incl) assert i(C.a, value) is True
def test_allow(self, incl, value): """ Return True if a class or attribute is included. """ i = include(*incl) assert i(fields(C).a, value) is True