fixed a bug on testing throttling headers

after changing the headers storing of reponse
This commit is contained in:
Ludwig Kraatz 2012-11-13 18:39:07 +01:00
parent 573de11b23
commit 851dff1644

View File

@ -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):
"""