Skip to content
Myr

Fixed test for issue #747 to check for '' instead of 'text/plain'

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 12328d6 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:tests/test_requests.py+1 added-1 removed
975 unmodified lines
976 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')980 self.assertEqual(t.get('headers').get('Content-Type'), '')981982983if __name__ == '__main__':984 unittest.main()