def test_calling_format_subdomain(self): cf = s3.get_calling_format(s3_store_bucket_url_format='subdomain') self.assertIsInstance(cf, boto.s3.connection.SubdomainCallingFormat)
def test_calling_format_default(self): self.assertIsInstance(s3.get_calling_format(), boto.s3.connection.SubdomainCallingFormat)
def test_calling_format_path(self): cf = s3.get_calling_format(s3_store_bucket_url_format='path') self.assertIsInstance(cf, boto.s3.connection.OrdinaryCallingFormat)