projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5017aeb
)
Extend digests test case to connect twice using the same auth and confirm the second...
author
Peter Montagner
<zigmonty@gmail.com>
Sat, 18 Aug 2012 05:33:05 +0000
(15:33 +1000)
committer
Peter Montagner
<zigmonty@gmail.com>
Sat, 18 Aug 2012 05:33:05 +0000
(15:33 +1000)
tests/test_requests.py
patch
|
blob
|
history
diff --git
a/tests/test_requests.py
b/tests/test_requests.py
index
25e6bbd
..
2694709
100755
(executable)
--- a/
tests/test_requests.py
+++ b/
tests/test_requests.py
@@
-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)