Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Add tests for HTTP 307 permanent redirects

Paul Tremberth15a5c533fa6f
diff --git a/tests/test_downloadermiddleware_redirect.py b/tests/test_downloadermiddleware_redirect.py
index a2da4aa8f..35e474418 100644
--- a/tests/test_downloadermiddleware_redirect.py
+++ b/tests/test_downloadermiddleware_redirect.py
@@ -42,6 +42,10 @@ class RedirectMiddlewareTest(unittest.TestCase):
_test('POST')
_test('HEAD')
+ _test('GET', status=307)
+ _test('POST', status=307)
+ _test('HEAD', status=307)
+
_test('GET', status=308)
_test('POST', status=308)
_test('HEAD', status=308)