def METHOD_NAME(init_instances_dir, valid_instance_env_variables):
    with app.app_context():
        instances = get_instances_name()
        assert len(instances) == 2
        for name in ["fr", "fr-se-lyon"]:
            assert name in instances