- # def test_swagger(self):
- # response = self.client.get("/api/nslcm/v1/swagger.json")
- # self.assertEqual(status.HTTP_200_OK, response.status_code, response.content)
- # with open('vfc.json', 'w') as swagger_file:
- # swagger_file.write(json.dumps(response.data))
+ def test_swagger_json(self):
+ pass
+
+ # url = "/api/nslcm/v1/swagger.json"
+ # response = self.client.get(url, format='json')
+ # self.assertEqual(response.status_code, status.HTTP_200_OK)
+ # self.assertEqual("2.0", response.data.get("swagger"))