Passed
Push — develop ( bcdb14...7e0539 )
by Christophe
01:15
created

test_double_sharp   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A tests.test_double_sharp.SharpTest.test_sharp_sharp() 0 5 1
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