Skip to content
Myr

Adjust tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Johannes · committed by Johannes · parent c8cc2d0 · Browse files · 1 file+2 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−4 removed

  • other:+2 added−4 removed

1 file+2 added−4 removed

modified:test_requests.py+2 added-4 removed
155 unmodified lines
156 r = requests.get('https://convore.com/api/account/verify.json', auth=conv_auth)157 self.assertEquals(r.status_code, 401)158 159 def test_settings(self):160 import urllib2161 162 with requests.settings(timeout=0):163 self.assertRaises(urllib2.URLError, requests.get, 'http://google.com')160 with requests.settings(timeout=0.0001):161 self.assertRaises(requests.Timeout, requests.get, 'http://google.com')162 163 with requests.settings(timeout=10):164 requests.get('http://google.com')165
7 unmodified lines