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:
9
tests/unit/test_request.py
Normal file
9
tests/unit/test_request.py
Normal 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>'
|
||||
Reference in New Issue
Block a user