Skip to content
Myr

tests cleanups

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent f0d2ac3 · Browse files · 1 file+3 added−2 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+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:test_requests.py+3 added-2 removed
32 unmodified lines
33 34 r = requests.get('http://www.google.com/search', params={'q': 'test'}, headers=heads)35 self.assertEqual(r.status_code, 200)363738 def test_HTTP_200_OK_GET_WITH_MIXED_PARAMS(self):3940 heads = {'User-agent': 'Mozilla/5.0'}41
33 unmodified lines
75 post2 = requests.post(bin.url, files={'some': open('test_requests.py')})76 self.assertEqual(post2.status_code, 201)7778 def test_POSTBIN_GET_POST_FILES_WITH_PARAMS(self):78 # TODO: postbin w/ params7980 bin = requests.post('http://www.postbin.org/')80 print bin.url81 82 self.assertEqual(bin.status_code, 200)8384 post2 = requests.post(bin.url, files={'some': open('test_requests.py')}, data={'some': 'data'})85 self.assertEqual(post2.status_code, 201)
25 unmodified lines