-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attributes set on VCRConnection now also get set on the real_connection
- Loading branch information
Tye Wang
committed
Sep 3, 2015
1 parent
34252bc
commit 79ff59f
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from vcr.stubs import VCRHTTPSConnection | ||
|
||
class TestVCRConnection(object): | ||
def test_setting_of_attributes_get_propogated_to_real_connection(self): | ||
vcr_connection = VCRHTTPSConnection('www.examplehost.com') | ||
vcr_connection.ssl_version = 'example_ssl_version' | ||
assert vcr_connection.real_connection.ssl_version == 'example_ssl_version' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters