def METHOD_NAME(self):
    """
    Frontend context flag should be enabled when flag is enabled
    and resource is active.
    """
    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, passport = generate_passport_and_signed_lti_parameters(
        url="http://testserver/lti/select/",
        lti_parameters=lti_consumer_parameters,
    )
    playlist = PlaylistFactory(
        lti_id=lti_parameters.get("context_id"),
        consumer_site=passport.consumer_site,
    )
    file_depository = FileDepositoryFactory(playlist=playlist)
    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.assertTrue(context.get("flags").get("deposit"))
    self.assertEqual(
        context.get("deposits")[0].get("lti_url"),
        f"http://testserver/lti/filedepositories/{file_depository.id}",
    )