'Verifies that the LTI launch will fail if the ENABLE_LTI_PROVIDER flag
is not set'

def test_launch_with_disabled_feature_flag(self):

    with patch.dict('django.conf.settings.FEATURES', {'ENABLE_LTI_PROVIDER': False}):
        request = build_launch_request()
        response = views.lti_launch(request, None, None)
        self.assertEqual(response.status_code, 403)
