Esempio n. 1
0
 def test_get_community(self):
     """
     Test Retrieving an collection by Id
     """
     dspace= self.dspace
     test_id = 2
     collection = Collection.get_collection(dspace,test_id)
     self.assertEqual(collection.id,test_id,"Get collection by Id Fails")
Esempio n. 2
0
 def get_object(self,id,**kwargs):
     try:
         collection = Collection.get_collection(dspace,id,**dict(kwargs))
         return collection
     except Collection.DoesNotExist:
         raise Http404