Skip to content
Myr

test fix

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 e84d84b · Browse files · 3 files+2 added−3 removed
This commit

State

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

Diff stats

3 files+2 added−3 removed

  • other:+2 added−3 removed

3 files+2 added−3 removed

modified:requests/sessions.py-1 removed
267 unmodified lines
268269 return self.request('delete', url, **kwargs)270271272272def session(**kwargs):273 """Returns a :class:`Session` for context-management."""274275 return Session(**kwargs)
modified:requests/structures.py+1 added
6 unmodified lines
7Data structures that power Requests.89"""101112class CaseInsensitiveDict(dict):13 """Case-insensitive Dictionary1415 For example, ``headers['content-encoding']`` will return the
51 unmodified lines
modified:test_requests.py+1 added-2 removed
304 unmodified lines
305306 rbody = json.loads(r.content)307 # Body wasn't valid url encoded data, so the server returns None as308 # "form" and the raw body as "data".309 self.assertAlmostEquals(rbody.get('form'), {})309 self.assertEquals(rbody.get('form'), {})310 self.assertEquals(rbody.get('data'), 'fooaowpeuf')311312313 def test_urlencoded_post_querystring(self):
223 unmodified lines
537 assert params3['b'] in r3.content538 assert params3['c'] in r3.content539540 def test_invalid_content(self):541541 # WARNING: if you're using a terrible DNS provider (comcast),542 # this will fail.543 try:544 hah = 'http://somedomainthatclearlydoesntexistg.com'
14 unmodified lines