  def testCreateBucket(self, mock_s3_api):
    """Test that the Bucket is created."""
    storage = mock_s3_api.return_value.create_bucket
    storage.return_value = aws_mocks.MOCK_CREATE_BUCKET
    create_bucket = aws_mocks.FAKE_STORAGE.CreateBucket('test-bucket')

    storage.assert_called_with(
        Bucket='test-bucket',
        ACL='private',
        CreateBucketConfiguration={
            'LocationConstraint': aws_mocks.FAKE_AWS_ACCOUNT.default_region
        })
    self.assertEqual(200, create_bucket['ResponseMetadata']['HTTPStatusCode'])
    self.assertEqual('http://test-bucket.s3.amazonaws.com/', create_bucket['Location'])

    create_bucket = aws_mocks.FAKE_STORAGE.CreateBucket('test-bucket', region='us-east-1')
    storage.assert_called_with(
        Bucket='test-bucket',
        ACL='private')
Test that the Bucket is created.
tests/providers/aws/internal/test_s3.py