diff --git a/src/strass/strass_app/tests/test_views_others.py b/src/strass/strass_app/tests/test_views_others.py
index cafbd4a33b35814b1cd02e6d9bbf16800db0e510..de5de7de2efc5f069dd396cb05bc271c01f97ebd 100644
--- a/src/strass/strass_app/tests/test_views_others.py
+++ b/src/strass/strass_app/tests/test_views_others.py
@@ -557,6 +557,7 @@ class OtherWithDataTestCase(BaseTestCase):
 
     def test_call_html_allowed_and_injection_prevented(self):
         h2_str = "hello world"
+        h2_html = '<h2>' + h2_str
         img_tag = '<img src="foo.bar"/>'
         img_tag_md = '![image](daa.too)'
         img_tag_from_md = markdown(img_tag_md)
@@ -567,7 +568,7 @@ class OtherWithDataTestCase(BaseTestCase):
         response = self.client.get(url)
         self.assertEqual(response.status_code, 200)
         content_str = str(response.content)
-        self.assertIn(h2_str, content_str, "an h2 should be rendered, is markdown working?")
+        self.assertIn(h2_html, content_str, "an h2 should be rendered, is markdown working?")
         self.assertNotIn(img_tag, content_str, "<img is not allowed yet")
         self.assertIn(img_tag_from_md, content_str, "<img should produced after ![image]")
         self.assertNotIn(script_tag, content_str, "<script should still be prevented")