def collection(self): collection_uri = self.rels_ext.content.value( subject=self.uriref, predicate=rdfns.relsext.isMemberOfCollection) if collection_uri: return CollectionObject( self.api, str(collection_uri).replace('info:fedora/', ''))
def setUp(self): # use an in-ingested collection object with a mock API for now (until we need more) self.coll = CollectionObject(Mock())