--- a/src/ldt/ldt/api/ldt/tests/tests_annotation.py Thu Sep 03 18:02:53 2015 +0200
+++ b/src/ldt/ldt/api/ldt/tests/tests_annotation.py Thu Sep 03 18:35:42 2015 +0200
@@ -53,7 +53,7 @@
"tags": ["added_tag"],
}
- def testPost(self):
+ def testCreation(self):
resp = self.api_client.client.post(reverse('api_dispatch_list', kwargs={'api_name':'1.0', 'resource_name':'annotations'}), content_type='application/json', data=self.test_annotation_json)
self.assertHttpCreated(resp)
created_ann_data = json.loads(resp.content)
@@ -68,7 +68,7 @@
self.assertEqual("2015-07-20T10:33:46.282Z", annotation.date)
self.assertEqual("", annotation.get_tags())
- def testPut(self):
+ def testEdit(self):
post_resp = self.api_client.client.post(reverse('api_dispatch_list', kwargs={'api_name':'1.0', 'resource_name':'annotations'}), content_type='application/json', data=self.test_annotation_json)
ann_id = json.loads(post_resp.content)["id"]