(self)
| 363 | ) |
| 364 | |
| 365 | def testTOCTitle(self): |
| 366 | self.assertMarkdownRenders( |
| 367 | self.dedent( |
| 368 | ''' |
| 369 | # Header 1 |
| 370 | |
| 371 | ## Header 2 |
| 372 | ''' |
| 373 | ), |
| 374 | self.dedent( |
| 375 | ''' |
| 376 | <h1 id="header-1">Header 1</h1> |
| 377 | <h2 id="header-2">Header 2</h2> |
| 378 | ''' |
| 379 | ), |
| 380 | expected_attrs={ |
| 381 | 'toc': ( |
| 382 | '<div class="toc"><span class="toctitle">Table of Contents</span>' |
| 383 | '<ul>\n' # noqa |
| 384 | '<li><a href="#header-1">Header 1</a>' # noqa |
| 385 | '<ul>\n' # noqa |
| 386 | '<li><a href="#header-2">Header 2</a></li>\n' # noqa |
| 387 | '</ul>\n' # noqa |
| 388 | '</li>\n' # noqa |
| 389 | '</ul>\n' # noqa |
| 390 | '</div>\n' |
| 391 | ) |
| 392 | }, |
| 393 | extensions=[TocExtension(title='Table of Contents')] |
| 394 | ) |
| 395 | |
| 396 | def testTOCUniqueFunc(self): |
| 397 | ids = {'foo'} |
nothing calls this directly
no test coverage detected