Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
1f4da53c
Commit
1f4da53c
authored
Jun 12, 2013
by
Georgios D. Tsoukalas
Browse files
cyclades: add test for 400 in wrong Plankton paths
parent
4ffb93a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/plankton/tests.py
View file @
1f4da53c
...
...
@@ -261,3 +261,12 @@ class PlanktonTest(PlanktonAPITest):
self
.
assertEqual
(
response
.
status_code
,
204
)
backend
.
return_value
.
unregister
.
assert_called_once_with
(
'123'
)
backend
.
return_value
.
_delete
.
assert_not_called
()
@
assert_backend_closed
def
test_catch_wrong_api_paths
(
self
,
*
args
):
response
=
self
.
myget
(
'nonexistent'
)
self
.
assertEqual
(
response
.
status_code
,
400
)
try
:
error
=
json
.
loads
(
response
.
content
)
except
ValueError
:
self
.
assertTrue
(
False
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment