Skip to content
Myr

Added a test to expose issue #747

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

authored by Marcus McCurdy · committed by Marcus McCurdy · parent b5ca4b4 · Browse files · 1 file+7 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+7 added−0 removed

  • tests:+7 added−0 removed

1 file+7 added−0 removed

modified:tests/test_requests.py+7 added
971 unmodified lines
972 t = json.loads(r.text)973 self.assertEqual(t.get('form'), {'field': 'a, b'})974 self.assertEqual(t.get('files'), files)975976 def test_str_data_content_type(self):977 data = "test string data"978 r = post(httpbin('post'), data=data)979 t = json.loads(r.text)980 self.assertEqual(t.get('headers').get('Content-Type'), 'text/plain')981982983if __name__ == '__main__':984 unittest.main()