Refactor catalog swagger test cases 51/14551/1
authorfujinhua <fu.jinhua@zte.com.cn>
Fri, 22 Sep 2017 09:27:52 +0000 (17:27 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Fri, 22 Sep 2017 09:27:52 +0000 (17:27 +0800)
Change-Id: Ic0299aa8426fb771447c2f647f1ed3c42710389f
Issue-Id: VFC-430
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
catalog/swagger/tests.py

index 9cb305c..d52fa84 100644 (file)
@@ -15,13 +15,13 @@ from django.test import Client
 from rest_framework import status
 
 
-class SampleViewTest(unittest.TestCase):
+class SwaggerViewTest(unittest.TestCase):
     def setUp(self):
         self.client = Client()
 
     def tearDown(self):
         pass
 
-    def test_sample(self):
+    def test_swagger(self):
         response = self.client.get("/api/catalog/v1/swagger.json")
         self.assertEqual(status.HTTP_200_OK, response.status_code, response.content)