mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 09:13:23 +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('host')
|
||||
assert_matcher('port')
|
||||
#assert_matcher('method')
|
||||
assert_matcher('path')
|
||||
|
||||
@@ -23,6 +23,10 @@ class Request(object):
|
||||
def port(self):
|
||||
return urlparse(self.uri).port
|
||||
|
||||
@property
|
||||
def path(self):
|
||||
return urlparse(self.uri).path
|
||||
|
||||
@property
|
||||
def url(self):
|
||||
return self.uri
|
||||
|
||||
Reference in New Issue
Block a user