aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/throttling.py
diff options
context:
space:
mode:
authorTom Christie2012-11-14 10:42:08 -0800
committerTom Christie2012-11-14 10:42:08 -0800
commit0cfb27b40e14274b990f943f79008f2cd6978e26 (patch)
tree30a9a64d105c8c60538bcccf081531af651382e5 /rest_framework/tests/throttling.py
parenta83eb748c1515f9b4c363c9c7de1782d9da4dfe9 (diff)
parentd9c62c20a7a025d8e94fb881641731b340088f98 (diff)
downloaddjango-rest-framework-0cfb27b40e14274b990f943f79008f2cd6978e26.tar.bz2
Merge pull request #407 from ludwigkraatz/location_header
Location header when Creating a Resource with HyperlinkedIdentityField
Diffstat (limited to 'rest_framework/tests/throttling.py')
-rw-r--r--rest_framework/tests/throttling.py2
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):
"""