mirror of
https://github.com/kennethreitz/requests3.git
synced 2026-06-05 23:10:16 +00:00
Removed the other 'encode' as well, in the test case.
This commit is contained in:
+1
-1
@@ -1064,7 +1064,7 @@ class RequestsTestCase(unittest.TestCase):
|
||||
|
||||
def test_json_param_post_should_not_override_data_param(self):
|
||||
r = requests.Request(method='POST', url='http://httpbin.org/post',
|
||||
data={'stuff'.encode('utf-8'): 'elixr'},
|
||||
data={'stuff': 'elixr'},
|
||||
json={'music': 'flute'})
|
||||
prep = r.prepare()
|
||||
assert 'stuff=elixr' == prep.body
|
||||
|
||||
Reference in New Issue
Block a user