change test names to better describe what is tested
authorymh <ymh.work@gmail.com>
Thu, 03 Sep 2015 18:35:42 +0200
changeset 1424 bcd4df4ddd69
parent 1423 09d4840f213e
child 1425 9e302b704ec0
change test names to better describe what is tested
src/ldt/ldt/api/ldt/tests/tests_annotation.py
--- 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"]