1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 17:15:35 +00:00

Verify effective_url is ok

This commit is contained in:
Maarten van Schaik
2015-08-14 12:29:50 +02:00
parent a82e8628c2
commit 01f1f9fdc1

View File

@@ -87,6 +87,7 @@ def test_effective_url(get_client, scheme, tmpdir):
url = scheme + '://httpbin.org/redirect-to?url=/html'
with vcr.use_cassette(str(tmpdir.join('url.yaml'))):
effective_url = (yield get(get_client(), url)).effective_url
assert effective_url == scheme + '://httpbin.org/html'
with vcr.use_cassette(str(tmpdir.join('url.yaml'))) as cass:
assert effective_url == (yield get(get_client(), url)).effective_url