# HG changeset patch # User ymh # Date 1441298142 -7200 # Node ID bcd4df4ddd69a2a767847ec9789e02859ecf3d0b # Parent 09d4840f213e1a2e21730e8ef2293def1659640e change test names to better describe what is tested diff -r 09d4840f213e -r bcd4df4ddd69 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"]