Refactor swagger test cases 45/14545/1
authorfujinhua <fu.jinhua@zte.com.cn>
Fri, 22 Sep 2017 09:24:56 +0000 (17:24 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Fri, 22 Sep 2017 09:24:56 +0000 (17:24 +0800)
Change-Id: Ib074f418bd1200b7260e206a12d35b1945906825
Issue-Id: VFC-428
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/swagger/tests.py

index b877609..54551fa 100644 (file)
@@ -15,16 +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/nslcm/v1/swagger.json")
-        print response
         self.assertEqual(status.HTTP_200_OK, response.status_code, response.content)
-#        resp_data = json.loads(response.content)
-#        self.assertEqual({"status": "active"}, resp_data)