diff options
| author | Ludwig Kraatz | 2012-11-13 18:39:07 +0100 |
|---|---|---|
| committer | Ludwig Kraatz | 2012-11-13 18:39:07 +0100 |
| commit | 851dff1644f6dafd29838a997a788df51c0570a3 (patch) | |
| tree | 201ec42f083a6f466e685e942b7ec68fc2d31486 /rest_framework | |
| parent | 573de11b233a85347456a4d7e50fd7345d13db03 (diff) | |
| download | django-rest-framework-851dff1644f6dafd29838a997a788df51c0570a3.tar.bz2 | |
fixed a bug on testing throttling headers
after changing the headers storing of reponse
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/tests/throttling.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/throttling.py b/rest_framework/tests/throttling.py index 0b94c25b..4b98b941 100644 --- a/rest_framework/tests/throttling.py +++ b/rest_framework/tests/throttling.py @@ -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): """ |
