diff --git a/tests/integration/test_boto.py b/tests/integration/test_boto.py index 567a468..ca6fb95 100644 --- a/tests/integration/test_boto.py +++ b/tests/integration/test_boto.py @@ -4,6 +4,13 @@ from boto.s3.connection import S3Connection from boto.s3.key import Key import vcr +def test_boto_stubs(tmpdir): + with vcr.use_cassette(str(tmpdir.join('boto-stubs.yml'))): + # Perform the imports within the patched context so that + # CertValidatingHTTPSConnection refers to the patched version. + from boto.https_connection import CertValidatingHTTPSConnection + CertValidatingHTTPSConnection('hostname.does.not.matter') + def test_boto_without_vcr(): s3_conn = S3Connection() s3_bucket = s3_conn.get_bucket('boto-demo-1394171994') # a bucket you can access