def test_delete_occurrence(self): created = samples.create_occurrence(self.image_url, self.note_id, PROJECT_ID, PROJECT_ID) samples.delete_occurrence(basename(created.name), PROJECT_ID) try: samples.get_occurrence(basename(created.name), PROJECT_ID) except NotFound: pass else: # didn't raise exception we expected assert False
def test_create_occurrence(self): created = samples.create_occurrence(self.image_url, self.note_id, PROJECT_ID, PROJECT_ID) retrieved = samples.get_occurrence(basename(created.name), PROJECT_ID) assert created.name == retrieved.name # clean up samples.delete_occurrence(basename(created.name), PROJECT_ID)
def test_create_occurrence(self): created = samples.create_occurrence(self.image_url, self.note_id, PROJECT_ID, PROJECT_ID) retrieved = samples.get_occurrence(basename(created.name), PROJECT_ID) if created.name != retrieved.name: raise AssertionError # clean up samples.delete_occurrence(basename(created.name), PROJECT_ID)