Skip to content
Myr

whitespace!

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 f7cc7b1 · Browse files · 1 file+4 added−0 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+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:test_requests.py+4 added
322 unmodified lines
323 rbody = json.loads(r.content)324 self.assertEquals(rbody.get('form'), None)325 self.assertEquals(rbody.get('data'), 'foobar')326327328 def test_idna(self):329 r = requests.get(u'http://➡.ws/httpbin')330 assert 'httpbin' in r.url331332333 def test_urlencoded_get_query_multivalued_param(self):334 r = requests.get(httpbin('get'), params=dict(test=['foo','baz']))335 self.assertEquals(r.status_code, 200)336 self.assertEquals(r.url, httpbin('get?test=foo&test=baz'))337338339 def test_urlencoded_post_querystring_multivalued(self):340 r = requests.post(httpbin('post'), params=dict(test=['foo','baz']))341 self.assertEquals(r.status_code, 200)342 self.assertEquals(r.headers['content-type'], 'application/json')
1 unmodified line
344 rbody = json.loads(r.content)345 self.assertEquals(rbody.get('form'), {}) # No form supplied346 self.assertEquals(rbody.get('data'), '')347348349 def test_urlencoded_post_query_multivalued_and_data(self):350 r = requests.post(httpbin('post'), params=dict(test=['foo','baz']),351 data=dict(test2="foobar",test3=['foo','baz']))352 self.assertEquals(r.status_code, 200)
18 unmodified lines