Permalink
Browse files

Removed usage of requests config parameter that was removed.

  • Loading branch information...
1 parent ed1c756 commit b08c55a0a5e16b5456213c5a91aecb3de680c84a @jterrace jterrace committed Mar 6, 2013
Showing with 3 additions and 5 deletions.
  1. +3 −5 vaurien/tests/test_proxy.py
@@ -9,7 +9,6 @@
_PROXY = 'http://localhost:8000'
-_REQCONFIG = {'verbose': StringIO()}
class TestSimpleProxy(unittest.TestCase):
@@ -41,17 +40,16 @@ def test_proxy(self):
# let's do a few simple request first to make sure the proxy works
self.assertEqual(self.client.get_behavior(), 'dummy')
for i in range(10):
- res = requests.get(_PROXY, config=_REQCONFIG)
+ res = requests.get(_PROXY)
self.assertEqual(res.status_code, 200)
# now let's add a bit of havoc
with self.client.with_behavior('blackout'):
# oh look we broke it
- self.assertRaises(requests.ConnectionError, requests.get, _PROXY,
- config=_REQCONFIG)
+ self.assertRaises(requests.ConnectionError, requests.get, _PROXY)
self.assertEqual(self.client.get_behavior(), 'blackout')
# we should be back to normal
self.assertEqual(self.client.get_behavior(), 'dummy')
- res = requests.get(_PROXY, config=_REQCONFIG)
+ res = requests.get(_PROXY)
self.assertEqual(res.status_code, 200)

0 comments on commit b08c55a

Please sign in to comment.