Example #1
0
    def testLajiStoreIndividual(self):
        response = LajiStoreAPI.post_individual(**self.individual)
        self.assertEquals(True, "id" in response)

        response = LajiStoreAPI.get_individual(response["id"])
        self.assertEquals(True, "id" in response)

        self.individual["id"] = response["id"]
        response = LajiStoreAPI.update_individual(**self.individual)
        self.assertEquals(True, "id" in response)

        response = LajiStoreAPI.delete_individual(response["id"])
        self.assertEquals(204, response.status_code)
Example #2
0
 def delete(self):
     '''
     Deletes the individual from LajiStore. Note that the object is not destroyed!
     '''
     LajiStoreAPI.delete_individual(self.id)