Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move chunked head redirect test to ext

  • Loading branch information...
commit bd0e00280460b28d3bf715d64888605750d9e735 1 parent 0e65dff
@umbrae authored
Showing with 6 additions and 5 deletions.
  1. +0 −5 tests/test_requests.py
  2. +6 −0 tests/test_requests_ext.py
View
5 tests/test_requests.py
@@ -797,10 +797,5 @@ def test_empty_response(self):
r = requests.get(httpbin('status', '404'))
r.text
- def test_chunked_head_redirect(self):
- u = "http://t.co/NFrx0zLG"
- r = requests.head(u, allow_redirects=True)
- self.assertEqual(r.status_code, 200)
-
if __name__ == '__main__':
unittest.main()
View
6 tests/test_requests_ext.py
@@ -53,6 +53,12 @@ def test_unicode_error(self):
url = u'http://blip.fm/~1abvfu'
requests.get(url)
+
+ def test_chunked_head_redirect(self):
+ url = "http://t.co/NFrx0zLG"
+ r = requests.head(url, allow_redirects=True)
+ self.assertEqual(r.status_code, 200)
+
if __name__ == '__main__':
unittest.main()
Please sign in to comment.
Something went wrong with that request. Please try again.