(self)
| 56 | ) |
| 57 | |
| 58 | def testNoTOCMarker(self): |
| 59 | self.assertMarkdownRenders( |
| 60 | self.dedent( |
| 61 | ''' |
| 62 | # Header 1 |
| 63 | |
| 64 | ## Header 2 |
| 65 | ''' |
| 66 | ), |
| 67 | self.dedent( |
| 68 | ''' |
| 69 | <h1 id="header-1">Header 1</h1> |
| 70 | <h2 id="header-2">Header 2</h2> |
| 71 | ''' |
| 72 | ), |
| 73 | expected_attrs={ |
| 74 | 'toc': ( |
| 75 | '<div class="toc">\n' |
| 76 | '<ul>\n' # noqa |
| 77 | '<li><a href="#header-1">Header 1</a>' # noqa |
| 78 | '<ul>\n' # noqa |
| 79 | '<li><a href="#header-2">Header 2</a></li>\n' # noqa |
| 80 | '</ul>\n' # noqa |
| 81 | '</li>\n' # noqa |
| 82 | '</ul>\n' # noqa |
| 83 | '</div>\n' |
| 84 | ) |
| 85 | } |
| 86 | ) |
| 87 | |
| 88 | def testAlternateTOCMarker(self): |
| 89 | self.assertMarkdownRenders( |
nothing calls this directly
no test coverage detected