def METHOD_NAME(settings_sandbox):
    """Verify that we enable and configure S3 with a variable"""
    # Unset, we don't do S3
    settings_vars = settings_sandbox.patch(
        {"MITXPRO_USE_S3": "False", "AWS_ACCESS_KEY_ID": ""}
    )
    assert settings_vars.get("DEFAULT_FILE_STORAGE") is None
    with pytest.raises(ImproperlyConfigured):
        settings_sandbox.patch({"MITXPRO_USE_S3": "True"})
    # Verify it all works with it enabled and configured 'properly'
    settings_vars = settings_sandbox.patch(
        {
            "MITXPRO_USE_S3": "True",
            "AWS_ACCESS_KEY_ID": "1",
            "AWS_SECRET_ACCESS_KEY": "2",
            "AWS_STORAGE_BUCKET_NAME": "3",
        }
    )
    assert (
        settings_vars.get("DEFAULT_FILE_STORAGE")
        == "storages.backends.s3boto3.S3Boto3Storage"
    )