1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-10 01:25:34 +00:00

lets store the proto too

This commit is contained in:
Kevin McCarthy
2013-08-10 13:33:10 -10:00
parent 59567a26cc
commit ec01955c68
3 changed files with 18 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
from vcr.request import Request
def test_url():
req = Request('http','www.google.com',80,'GET','/','',{})
assert req.url == 'http://www.google.com/'
def test_str():
req = Request('http','www.google.com',80,'GET','/','',{})
str(req) == '<Request (GET) http://www.google.com>'