Skip to content

Commit

Permalink
add missing _get_content_length static method
Browse files Browse the repository at this point in the history
also add _is_textIO
  • Loading branch information
Thomas Grainger committed Apr 4, 2017
1 parent 3e9fb10 commit 73dbc6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vcr/stubs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@ def __setattr__(self, name, value):
super(VCRConnection, self).__setattr__(name, value)


for k, v in HTTPConnection.__dict__.items():
if isinstance(v, staticmethod):
setattr(VCRConnection, k, v)


class VCRHTTPConnection(VCRConnection):
'''A Mocked class for HTTP requests'''
_baseclass = HTTPConnection
Expand Down

0 comments on commit 73dbc6f

Please sign in to comment.