mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 17:15:35 +00:00
Added path to Request with matcher and test
This commit is contained in:
@@ -39,4 +39,4 @@ def test_metchers():
|
|||||||
assert_matcher('method')
|
assert_matcher('method')
|
||||||
assert_matcher('host')
|
assert_matcher('host')
|
||||||
assert_matcher('port')
|
assert_matcher('port')
|
||||||
#assert_matcher('method')
|
assert_matcher('path')
|
||||||
|
|||||||
@@ -23,6 +23,10 @@ class Request(object):
|
|||||||
def port(self):
|
def port(self):
|
||||||
return urlparse(self.uri).port
|
return urlparse(self.uri).port
|
||||||
|
|
||||||
|
@property
|
||||||
|
def path(self):
|
||||||
|
return urlparse(self.uri).path
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def url(self):
|
def url(self):
|
||||||
return self.uri
|
return self.uri
|
||||||
|
|||||||
Reference in New Issue
Block a user