Fix python 2.6 unittest compatability issue.
authorJohnny Goodnow <j.goodnow29@gmail.com>
Fri, 25 Jan 2013 05:25:14 +0000 (21:25 -0800)
committerJohnny Goodnow <j.goodnow29@gmail.com>
Fri, 25 Jan 2013 05:25:14 +0000 (21:25 -0800)
test_requests.py

index 24cbc13..99e245f 100644 (file)
@@ -60,7 +60,7 @@ class RequestsTestCase(unittest.TestCase):
 
     def test_no_content_length(self):
         req = requests.Request('GET', httpbin('get')).prepare()
-        self.assertNotIn('Content-Length', req.headers)
+        self.assertTrue('Content-Length' not in req.headers)
 
 
     def test_path_is_not_double_encoded(self):