def testLajiStoreDocument(self): response = LajiStoreAPI.post_document(**self.document) self.assertEquals(True, "id" in response) response = LajiStoreAPI.get_document(response["id"]) self.assertEquals(True, "id" in response) self.document["id"] = response["id"] response = LajiStoreAPI.update_document(**self.document) self.assertEquals(True, "id" in response) response = LajiStoreAPI.delete_document(response["id"]) self.assertEquals(204, response.status_code)
def delete(self): ''' Deletes the document from LajiStore. Note that the object is not destroyed! ''' LajiStoreAPI.delete_document(self.id)