mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +00:00
Renamed outdated url to uri.
This commit is contained in:
@@ -2,10 +2,10 @@ import vcr
|
|||||||
from six.moves.urllib.request import urlopen
|
from six.moves.urllib.request import urlopen
|
||||||
|
|
||||||
|
|
||||||
def test_recorded_request_url_with_redirected_request(tmpdir):
|
def test_recorded_request_uri_with_redirected_request(tmpdir):
|
||||||
with vcr.use_cassette(str(tmpdir.join('test.yml'))) as cass:
|
with vcr.use_cassette(str(tmpdir.join('test.yml'))) as cass:
|
||||||
assert len(cass) == 0
|
assert len(cass) == 0
|
||||||
urlopen('http://httpbin.org/redirect/3')
|
urlopen('http://httpbin.org/redirect/3')
|
||||||
assert cass.requests[0].url == 'http://httpbin.org/redirect/3'
|
assert cass.requests[0].uri == 'http://httpbin.org/redirect/3'
|
||||||
assert cass.requests[3].url == 'http://httpbin.org/get'
|
assert cass.requests[3].uri == 'http://httpbin.org/get'
|
||||||
assert len(cass) == 4
|
assert len(cass) == 4
|
||||||
|
|||||||
Reference in New Issue
Block a user