Code Review
/
multicloud
/
framework.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "add subplug for k8s to invoke Artifact forward support"
[multicloud/framework.git]
/
multivimbroker
/
multivimbroker
/
swagger
/
tests.py
diff --git
a/multivimbroker/multivimbroker/swagger/tests.py
b/multivimbroker/multivimbroker/swagger/tests.py
index
f8147ec
..
153f766
100644
(file)
--- a/
multivimbroker/multivimbroker/swagger/tests.py
+++ b/
multivimbroker/multivimbroker/swagger/tests.py
@@
-1,4
+1,5
@@
# Copyright (c) 2017 Wind River Systems, Inc.
# Copyright (c) 2017 Wind River Systems, Inc.
+# Copyright (c) 2017-2018 VMware, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@
-10,7
+11,7
@@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
import unittest
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
import unittest
-import json
+
#
import json
from django.test import Client
from rest_framework import status
from django.test import Client
from rest_framework import status
@@
-24,6
+25,7
@@
class SampleViewTest(unittest.TestCase):
def test_sample(self):
response = self.client.get("/api/multicloud/v0/swagger.json")
def test_sample(self):
response = self.client.get("/api/multicloud/v0/swagger.json")
- self.assertEqual(status.HTTP_200_OK, response.status_code, response.content)
+ self.assertEqual(status.HTTP_200_OK,
+ response.status_code, response.content)
# resp_data = json.loads(response.content)
# self.assertEqual({"status": "active"}, resp_data)
# resp_data = json.loads(response.content)
# self.assertEqual({"status": "active"}, resp_data)