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
Remove sqlite.db
[multicloud/framework.git]
/
multivimbroker
/
multivimbroker
/
tests
/
test_check_capacity.py
diff --git
a/multivimbroker/multivimbroker/tests/test_check_capacity.py
b/multivimbroker/multivimbroker/tests/test_check_capacity.py
index
60035e0
..
d7a7cae
100644
(file)
--- a/
multivimbroker/multivimbroker/tests/test_check_capacity.py
+++ b/
multivimbroker/multivimbroker/tests/test_check_capacity.py
@@
-40,10
+40,10
@@
class CheckCapacityTest(unittest.TestCase):
"/v0/check_vim_capacity")
with mock.patch.object(self.view, "send") as send:
plugin_resp = mock.Mock()
"/v0/check_vim_capacity")
with mock.patch.object(self.view, "send") as send:
plugin_resp = mock.Mock()
- plugin_resp.
body
= """{
+ plugin_resp.
content
= """{
"result": true
}"""
"result": true
}"""
- plugin_resp.status_code = st
atus.HTTP_200_OK
+ plugin_resp.status_code = st
r(status.HTTP_200_OK)
send.return_value = plugin_resp
resp = self.view.post(req)
send.return_value = plugin_resp
resp = self.view.post(req)
@@
-66,10
+66,10
@@
class CheckCapacityTest(unittest.TestCase):
"/v0/check_vim_capacity")
with mock.patch.object(self.view, "send") as send:
plugin_resp = mock.Mock()
"/v0/check_vim_capacity")
with mock.patch.object(self.view, "send") as send:
plugin_resp = mock.Mock()
- plugin_resp.
body
= """{
+ plugin_resp.
content
= """{
"result": false
}"""
"result": false
}"""
- plugin_resp.status_code = st
atus.HTTP_200_OK
+ plugin_resp.status_code = st
r(status.HTTP_200_OK)
send.return_value = plugin_resp
resp = self.view.post(req)
send.return_value = plugin_resp
resp = self.view.post(req)