mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Update: @property decorator instead of __getattr__
This commit is contained in:
+3
-3
@@ -67,9 +67,9 @@ class MockRequest(object):
|
||||
def get_new_headers(self):
|
||||
return self._new_headers
|
||||
|
||||
def __getattr__(self, name):
|
||||
if name == 'unverifiable':
|
||||
return self.is_unverifiable()
|
||||
@property
|
||||
def unverifiable(self):
|
||||
return self.is_unverifiable()
|
||||
|
||||
|
||||
class MockResponse(object):
|
||||
|
||||
Reference in New Issue
Block a user