def test_no_dspace(self):
     """It should abort if no DSpace handle found."""
     with my_vcr.use_cassette('test_no_dspace.yaml') as c:
         rc = post_store_aip_hook.dspace_handle_to_archivesspace(
             self.sip_uuid)
         assert rc == 1
         assert c.all_played
 def test_dspace_handle_to_archivesspace(self):
     """It should send the DSpace handle to ArchivesSpace."""
     with my_vcr.use_cassette(
             'test_dspace_handle_to_archivesspace.yaml') as c:
         rc = post_store_aip_hook.dspace_handle_to_archivesspace(
             self.sip_uuid)
         assert rc == 0
         assert c.all_played
 def test_no_archivesspace(self):
     """It should abort if no ArchivesSpaceDigitalObject found."""
     models.ArchivesSpaceDigitalObject.objects.all().delete()
     rc = post_store_aip_hook.dspace_handle_to_archivesspace(self.sip_uuid)
     assert rc == 1