aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-09-22 17:27:52 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-09-22 17:27:52 +0800
commit966b12be62a2a60a211c693133ed09075e7e2dfa (patch)
tree7317b3235b4569c8f0d2c4a7cabb29b87447087d
parente18a01765ba3be8158d19133473156d466a564cb (diff)
Refactor catalog swagger test cases
Change-Id: Ic0299aa8426fb771447c2f647f1ed3c42710389f Issue-Id: VFC-430 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--catalog/swagger/tests.py4
1 files changed, 2 insertions, 2 deletions
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)