benoitc / benoitc/dj-webmachine
Raising HTTPBadRequest gives a bad response.status_code in Django test
Open
Bug
- Dominant language
- Python
- Stars
- 59
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
response.status_code is '400 Bad Request' instead of 400
## Django Test
response = self.client.post(self.url_create_user, data, follow=True)
self.assertEquals(response.status_code, 400)
## Webmachine resources.py
def to_json(self, req, resp):
....
raise HTTPBadRequest(resp)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.