def METHOD_NAME(self):
    form = FormFactory.create(
        explanation_template="""
        <p>This is some <span style="color: red;">inline styled</span> HTML.</p>
        """
    )
    endpoint = reverse("api:form-detail", kwargs={"uuid_or_slug": form.uuid})
    response = self.client.get(endpoint, **{NONCE_HTTP_HEADER: self.csp_nonce})
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    html_id = f"nonce-{md5hash(self.csp_nonce)}-1234"
    expected = f"""
    <style nonce="{self.csp_nonce}">
        #{html_id} {{
            color: red;
        }}
    </style>
    <p>This is some <span id="{html_id}">inline styled</span> HTML.</p>
    """
    self.assertHTMLEqual(response.json()["explanationTemplate"], expected)