def get_schema(self, name): """Get schema by name. :param name: Name of schema. :type name: str """ from collective.behavior.size.interfaces import ISize return ISize.get(name)
def test_instance_provides_ISize(self): instance = self.create_instance() from collective.behavior.size.interfaces import ISize self.assertTrue(ISize.providedBy(instance))