def test_setting_instance_options_works_case_insensitive():
    """
    assert that dynaconf options (that are modified by FlaskDynaconf)
    can be set by the user in a case insensitive manner. see #848
    """
    app = Flask(__name__)
    FlaskDynaconf(
        app,
        envVar_prefix="MYPREFIX",
        eNv_swItcHer="MY_ENV_SWITCHER",
        enViroNments=False,
        lOaD_dOtenv=False,
    )
    assert app.config.envvar_prefix_for_dynaconf == "MYPREFIX"
    assert app.config.env_switcher_for_dynaconf == "MY_ENV_SWITCHER"
    assert app.config.environments_for_dynaconf is False

    # oddly, using '_for_dynaconf' won't work, although
    # the option functionality seems to work as expected
    assert app.config.load_dotenv is False

    assert that dynaconf options (that are modified by FlaskDynaconf)
    can be set by the user in a case insensitive manner. see #848
    
tests/test_flask.py