mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
fixed a bug on testing throttling headers
after changing the headers storing of reponse
This commit is contained in:
parent
573de11b23
commit
851dff1644
|
@ -106,7 +106,7 @@ class ThrottlingTests(TestCase):
|
||||||
if expect is not None:
|
if expect is not None:
|
||||||
self.assertEquals(response['X-Throttle-Wait-Seconds'], expect)
|
self.assertEquals(response['X-Throttle-Wait-Seconds'], expect)
|
||||||
else:
|
else:
|
||||||
self.assertFalse('X-Throttle-Wait-Seconds' in response.headers)
|
self.assertFalse('X-Throttle-Wait-Seconds' in response)
|
||||||
|
|
||||||
def test_seconds_fields(self):
|
def test_seconds_fields(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user