mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +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:
|
||||
self.assertEquals(response['X-Throttle-Wait-Seconds'], expect)
|
||||
else:
|
||||
self.assertFalse('X-Throttle-Wait-Seconds' in response.headers)
|
||||
self.assertFalse('X-Throttle-Wait-Seconds' in response)
|
||||
|
||||
def test_seconds_fields(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user