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
af311de8
Commit
af311de8
authored
Jun 06, 2013
by
Christos Stavrakakis
Browse files
snf_django: Fix bug in BaseAPITest
Include 202 in success responses.
parent
afe5e702
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-django-lib/snf_django/utils/testing.py
View file @
af311de8
...
...
@@ -174,7 +174,7 @@ class BaseAPITest(TestCase):
return
response
def
assertSuccess
(
self
,
response
):
self
.
assertTrue
(
response
.
status_code
in
[
200
,
203
,
204
])
self
.
assertTrue
(
response
.
status_code
in
[
200
,
202
,
203
,
204
])
def
assertFault
(
self
,
response
,
status_code
,
name
):
self
.
assertEqual
(
response
.
status_code
,
status_code
)
...
...
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