Skip to content
Myr

Move chunked head redirect test to ext

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

authored by Chris Dary · committed by Chris Dary · parent 0e65dff · Browse files · 2 files+6 added−5 removed
This commit

State

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

Diff stats

2 files+6 added−5 removed

  • tests:+6 added−5 removed

2 files+6 added−5 removed

modified:tests/test_requests_ext.py+6 added
51 unmodified lines
52 def test_unicode_error(self):53 url = u'http://blip.fm/~1abvfu'54 requests.get(url)555657 def test_chunked_head_redirect(self):58 url = "http://t.co/NFrx0zLG"59 r = requests.head(url, allow_redirects=True)60 self.assertEqual(r.status_code, 200)6162if __name__ == '__main__':63 unittest.main()64
modified:tests/test_requests.py-5 removed
795 unmodified lines
796 def test_empty_response(self):797 r = requests.get(httpbin('status', '404'))798 r.text799800 def test_chunked_head_redirect(self):801 u = "http://t.co/NFrx0zLG"802 r = requests.head(u, allow_redirects=True)803 self.assertEqual(r.status_code, 200)804800if __name__ == '__main__':801 unittest.main()