Пример #1
0
class TestLineTooLongRule(unittest.TestCase):
    collection = RulesCollection()
    collection.register(LineTooLongRule())

    def setUp(self):
        self.runner = RunFromText(self.collection)

    def test_long_line(self):
        results = self.runner.run_state(LONG_LINE)
        self.assertEqual(1, len(results))
Пример #2
0
 def setUp(self):
     self.collection.register(LineTooLongRule())
     self.collection.register(JinjaVariableHasSpacesRule())