def test_render_alert_with_unsafe_content(self):
     self.assertEqual(
         render_alert("This is <b>unsafe</b>!"),
         ('<div class="alert alert-info alert-dismissible fade show" role="alert">'
          "This is &lt;b&gt;unsafe&lt;/b&gt;!"
          '<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>'
          "</div>"),
     )
 def test_render_alert_without_type(self):
     self.assertEqual(
         render_alert("content"),
         ('<div class="alert alert-info alert-dismissible fade show" role="alert">'
          "content"
          '<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>'
          "</div>"),
     )
 def test_render_alert_with_safe_content(self):
     self.assertEqual(
         render_alert(
             mark_safe(
                 'This is <a href="https://example.com" class="alert-link">a safe link</a>!'
             )),
         ('<div class="alert alert-info alert-dismissible fade show" role="alert">'
          'This is <a href="https://example.com" class="alert-link">a safe link</a>!'
          '<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>'
          "</div>"),
     )