diff --git a/bloom_nofos/nofos/test_nofo.py b/bloom_nofos/nofos/test_nofo.py index 4d6d2254..0fe1d475 100644 --- a/bloom_nofos/nofos/test_nofo.py +++ b/bloom_nofos/nofos/test_nofo.py @@ -2469,10 +2469,8 @@ def test_find_h7_headers_find_all_h7s(self): # Check div role="heading" h7 self.assertEqual(h7_headers[1]["name"], "This shimmed h7 will be recognized") - self.assertTrue( - h7_headers[1]["html_id"].startswith( - "1--new-section-h7--new-subsection-h4--div-h7-" - ) + self.assertEqual( + h7_headers[1]["html_id"], "1--new-section-h7--new-subsection-h4" ) self.assertEqual(h7_headers[1]["section"], nofo.sections.first()) self.assertEqual(h7_headers[1]["subsection"], subsections[3])