diff --git a/htmlreport/test_htmlreport.py b/htmlreport/test_htmlreport.py
index 5cfff8279..f8042ce73 100755
--- a/htmlreport/test_htmlreport.py
+++ b/htmlreport/test_htmlreport.py
@@ -27,7 +27,7 @@ class TestHTMLReport(unittest.TestCase):
with runCheck(os.path.join(
ROOT_DIR,
'samples', 'memleak', 'bad.c')) as (report, output_directory):
- self.assertIn('', report)
+ self.assertIn('', detail_contents)
+ self.assertIn('', report)
+ self.assertIn('