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)
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)