From: fujinhua Date: Fri, 22 Sep 2017 09:27:52 +0000 (+0800) Subject: Refactor catalog swagger test cases X-Git-Tag: v1.0.0~29^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F51%2F14551%2F1;p=vfc%2Fnfvo%2Fcatalog.git Refactor catalog swagger test cases Change-Id: Ic0299aa8426fb771447c2f647f1ed3c42710389f Issue-Id: VFC-430 Signed-off-by: fujinhua --- diff --git a/catalog/swagger/tests.py b/catalog/swagger/tests.py index 9cb305cf..d52fa847 100644 --- a/catalog/swagger/tests.py +++ b/catalog/swagger/tests.py @@ -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)