def METHOD_NAME(self):
    """Frontend context flag should be disabled when flag is disabled."""
    lti_consumer_parameters = {
        "roles": random.choice(["instructor", "administrator"]),
        "content_item_return_url": "https://lti-consumer.site/lti",
        "context_id": "sent_lti_context_id",
    }
    lti_parameters, _ = generate_passport_and_signed_lti_parameters(
        url="http://testserver/lti/select/",
        lti_parameters=lti_consumer_parameters,
    )
    response = self.client.post(
        "/lti/select/",
        lti_parameters,
        HTTP_REFERER="http://testserver",
    )
    self.assertEqual(response.status_code, 200)
    self.assertContains(response, "<html>")
    match = re.search(
        '<div id="marsha-frontend-data" data-context="(.*)">',
        response.content.decode("utf-8"),
    )
    context = json.loads(unescape(match.group(1)))
    self.assertFalse(context.get("flags").get("deposit"))
    self.assertIsNone(context.get("deposits"))