Skip to content

Commit

Permalink
Display error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Etienne committed Jan 26, 2015
1 parent 37a2026 commit fb8de96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion user_management/api/tests/test_throttling.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,8 @@ def test_post_rate_limit(self):
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)

response = view(request)
self.assertEqual(response.status_code, status.HTTP_429_TOO_MANY_REQUESTS)
self.assertEqual(
response.status_code,
status.HTTP_429_TOO_MANY_REQUESTS,
msg=response.data,
)

0 comments on commit fb8de96

Please sign in to comment.