aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2014-12-30 11:09:37 -0500
committerWaylan Limberg <waylan.limberg@icloud.com>2014-12-30 11:09:37 -0500
commitab64e9dfb44b1bfaa47b8e18e4a6c1fdf558990b (patch)
treedf18aad433a4f171c12f76c3876c262818498857
parent182a26caa7185ba3d951526c6dd19c1f32a1688a (diff)
downloadmarkdown-ab64e9dfb44b1bfaa47b8e18e4a6c1fdf558990b.tar.gz
markdown-ab64e9dfb44b1bfaa47b8e18e4a6c1fdf558990b.tar.bz2
markdown-ab64e9dfb44b1bfaa47b8e18e4a6c1fdf558990b.zip
Fix test
-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, '')