1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

remove debugging code from Request and add repr

This commit is contained in:
Kevin McCarthy
2013-08-11 17:07:13 -10:00
parent ce88331ebe
commit a6c59c20d2
2 changed files with 6 additions and 1 deletions

View File

@@ -3,7 +3,10 @@ import vcr
def test_recorded_request_url_with_redirected_request(tmpdir):
with vcr.use_cassette(str(tmpdir.join('test.yml'))) as cass:
assert len(cass) == 0
urllib2.urlopen('http://google.com')
print cass.requests
print cass.requests[0]
assert cass.requests[0].url == 'http://google.com'
assert cass.requests[1].url == 'http://www.google.com/'
assert len(cass) == 2