Uncommented test in test_requests.py
authorContinuousFunction <evolutionace@gmail.com>
Mon, 15 Dec 2014 18:41:10 +0000 (13:41 -0500)
committerContinuousFunction <evolutionace@gmail.com>
Mon, 15 Dec 2014 18:41:10 +0000 (13:41 -0500)
Uncommented test_sesion_pickling in test_requests.py and ran the file to
make sure the test passes.

test_requests.py

index 51d071e5d1a49063bbfb09f75f769ba38a4c7176..34348d3e47ebedb4a5997e4d14d0af705d469b1a 100755 (executable)
@@ -825,15 +825,15 @@ class RequestsTestCase(unittest.TestCase):
         assert str(error) == 'message'
         assert error.response == response
 
-##    def test_session_pickling(self):
-##        r = requests.Request('GET', httpbin('get'))
-##        s = requests.Session()
-##
-##        s = pickle.loads(pickle.dumps(s))
-##        s.proxies = getproxies()
-##
-##        r = s.send(r.prepare())
-##        assert r.status_code == 200
+    def test_session_pickling(self):
+        r = requests.Request('GET', httpbin('get'))
+        s = requests.Session()
+
+        s = pickle.loads(pickle.dumps(s))
+        s.proxies = getproxies()
+
+        r = s.send(r.prepare())
+        assert r.status_code == 200
 
     def test_fixes_1329(self):
         """