diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_throttling.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_throttling.py b/tests/test_throttling.py index b0cb2fe7..7b696f07 100644 --- a/tests/test_throttling.py +++ b/tests/test_throttling.py @@ -118,8 +118,10 @@ class ThrottlingTests(TestCase): response = view.as_view()(request) if expect is not None: self.assertEqual(response['X-Throttle-Wait-Seconds'], expect) + self.assertEqual(response['Retry-After'], expect) else: self.assertFalse('X-Throttle-Wait-Seconds' in response) + self.assertFalse('Retry-After' in response) def test_seconds_fields(self): """ @@ -172,11 +174,13 @@ class ThrottlingTests(TestCase): response = MockView_NonTimeThrottling.as_view()(request) self.assertFalse('X-Throttle-Wait-Seconds' in response) + self.assertFalse('Retry-After' in response) self.assertTrue(MockView_NonTimeThrottling.throttle_classes[0].called) response = MockView_NonTimeThrottling.as_view()(request) self.assertFalse('X-Throttle-Wait-Seconds' in response) + self.assertFalse('Retry-After' in response) class ScopedRateThrottleTests(TestCase): |
