@pytest.mark.skipif('no_real_s3_credentials()')
@pytest.mark.skipif('not boto_supports_certs()')
def test_get_bucket_vs_certs():
 import boto.s3.connection
 bucket_name = bucket_name_mangle('wal-e.test.dots', delimiter='.')
 with pytest.raises(boto.https_connection.InvalidCertificateException):
  with FreshBucket(bucket_name, calling_format=SubdomainCallingFormat()):
   pass

@ pytest . mark . skipif ( 'no_real_s3_credentials()' ) @ pytest . mark . skipif ( 'not boto_supports_certs()' ) def test_get_bucket_vs_certs ( ) : import boto . s3 . connection bucket_name = bucket_name_mangle ( 'wal-e.test.dots' , delimiter = '.' ) with pytest . raises ( boto . https_connection . InvalidCertificateException ) : with FreshBucket ( bucket_name , calling_format = SubdomainCallingFormat ( ) ) : pass
integration test for bucket naming issues .