Removed the other 'encode' as well, in the test case.

This commit is contained in:
Ravi Prakash Putchala
2015-09-09 14:43:22 +05:30
parent 7a0cd16c1a
commit 1f48a4c9ea
+1 -1
View File
@@ -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