Skip to content
Myr

Merge remote-tracking branch 'origin/develop' into develop

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 · parents ca7ee68, 02dcc40 · Browse files · 1 file+11 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+11 added−0 removed

  • tests:+11 added−0 removed

1 file+11 added−0 removed

modified:tests/test_requests.py+11 added
960 unmodified lines
961 r = requests.head(httpbin('headers'))962 r.content963 r.text964965 def test_post_fields_with_multiple_values_and_files(self):966 """Test that it is possible to POST using the files argument and a967 list for a value in the data argument."""968969 data = {'field': ['a', 'b']}970 files = {'file': 'Garbled data'}971 r = post(httpbin('post'), data=data, files=files)972 t = json.loads(r.text)973 self.assertEqual(t.get('form'), {'field': 'a, b'})974 self.assertEqual(t.get('files'), files)975976if __name__ == '__main__':977 unittest.main()