Extend digests test case to connect twice using the same auth and confirm the second...
authorPeter Montagner <zigmonty@gmail.com>
Sat, 18 Aug 2012 05:33:05 +0000 (15:33 +1000)
committerPeter Montagner <zigmonty@gmail.com>
Sat, 18 Aug 2012 05:33:05 +0000 (15:33 +1000)
tests/test_requests.py

index 25e6bbd..2694709 100755 (executable)
@@ -277,6 +277,11 @@ class RequestsTestSuite(TestSetup, TestBaseMixin, unittest.TestCase):
 
             r = get(url, auth=auth)
             self.assertEqual(r.status_code, 200)
+            self.assertEqual(len(r.history), 1)
+
+            r = get(url, auth=auth)
+            self.assertEqual(r.status_code, 200)
+            self.assertEqual(len(r.history), 0)
 
             r = get(url)
             self.assertEqual(r.status_code, 401)