Completed
Pull Request — master (#1073)
by Lasse
01:56
created

setUp()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 2
rs 10
1
import sys
2
import unittest
3
from queue import Queue
4
5
sys.path.insert(0, ".")
6
from bears.tests.LocalBearTestHelper import LocalBearTestHelper
7
from bears.NaturalLanguage.reSTLintBear import reSTLintBear
8
from coalib.settings.Section import Section
9
10
11
class reSTLintBearTest(LocalBearTestHelper):
12
    def setUp(self):
13
        self.uut = reSTLintBear(Section('name'), Queue())
14
15
    def test_valid(self):
16
        self.assertLinesValid(self.uut, ["test\n====\n"])
17
18
    def test_invalid(self):
19
        self.assertLinesInvalid(self.uut, ["test\n==\n"])
20
21
22
if __name__ == '__main__':
23
    unittest.main(verbosity=2)
24