Skip to content
Myr

fix form data tests

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 60558fd · Browse files · 1 file+2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:test_requests.py+2 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.assertEquals(rbody.get('form'), None)309 self.assertAlmostEquals(rbody.get('form'), {})310 self.assertEquals(rbody.get('data'), 'fooaowpeuf')311312313 def test_urlencoded_post_querystring(self):
39 unmodified lines
353 self.assertEquals(r.headers['content-type'], 'application/json')354355 rbody = json.loads(r.content)356357 self.assertEquals(rbody.get('form'), None)357 self.assertEquals(rbody.get('form'), {})358 self.assertEquals(rbody.get('data'), 'foobar')359360361 # def test_idna(self):
198 unmodified lines