aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_extensions.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/test_extensions.py b/tests/test_extensions.py
index 760069f..2380f17 100644
--- a/tests/test_extensions.py
+++ b/tests/test_extensions.py
@@ -737,18 +737,7 @@ class TestTOC(unittest.TestCase):
""" Test TOC Reset. """
self.assertEqual(self.md.toc, '')
self.md.convert('# Header 1\n\n## Header 2')
- self.assertEqual(
- self.md.toc,
- '<div class="toc">\n'
- '<ul>\n' # noqa
- '<li><a href="#header-1">Header 1</a>' # noqa
- '<ul>\n' # noqa
- '<li><a href="#header-2">Header 2</a></li>\n' # noqa
- '</ul>\n' # noqa
- '</li>\n' # noqa
- '</ul>\n' # noqa
- '</div>\n'
- )
+ self.assertTrue(self.md.toc.startswith('<div class="toc">'))
self.md.reset()
self.assertEqual(self.md.toc, '')