diff --git a/pywb/rewrite/test/test_rewrite_live.py b/pywb/rewrite/test/test_rewrite_live.py index fcb51ea3..b54138fa 100644 --- a/pywb/rewrite/test/test_rewrite_live.py +++ b/pywb/rewrite/test/test_rewrite_live.py @@ -105,10 +105,10 @@ def test_example_1(): assert '/pywb/20131226101010/http://www.iana.org/domains/example' in buff, buff def test_example_2_redirect(): - status_headers, buff = get_rewritten('http://facebook.com/', urlrewriter) + status_headers, buff = get_rewritten('http://httpbin.org/redirect-to?url=http://example.com/', urlrewriter) # redirect, no content - assert status_headers.get_statuscode() == '301' + assert status_headers.get_statuscode() == '302' assert len(buff) == 0 diff --git a/tests/test_live_rewriter.py b/tests/test_live_rewriter.py index f75f7015..77933463 100644 --- a/tests/test_live_rewriter.py +++ b/tests/test_live_rewriter.py @@ -14,8 +14,8 @@ class TestLiveRewriter: assert resp.status_int == 200 def test_live_rewrite_redirect_2(self): - resp = self.testapp.get('/rewrite/http://facebook.com/') - assert resp.status_int == 301 + resp = self.testapp.get('/rewrite/http://httpbin.org/redirect-to?url=http://example.com/') + assert resp.status_int == 302 def test_live_rewrite_post(self): resp = self.testapp.post('/rewrite/httpbin.org/post', {'foo': 'bar', 'test': 'abc'})