Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from unittest import TestCase |
||
2 | |||
3 | from panflute import Doc, convert_text |
||
4 | |||
5 | import pandoc_numbering |
||
6 | |||
7 | |||
8 | class SharpTest(TestCase): |
||
9 | def test_sharp_sharp(self): |
||
10 | definition = r"Example ##" |
||
11 | doc = Doc(*convert_text(definition)) |
||
12 | pandoc_numbering.main(doc) |
||
13 | self.assertEqual(doc.content[0].content[-1].text, "#") |
||
14 |