1
0
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:
Max Shytikov
2014-04-07 01:13:51 +02:00
parent bd9fa773e8
commit 6b060e5666
2 changed files with 5 additions and 1 deletions

View File

@@ -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')

View File

@@ -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