예제 #1
0
 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
예제 #2
0
 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)
예제 #3
0
 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)