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))
def setUp(self): self.collection.register(LineTooLongRule()) self.collection.register(JinjaVariableHasSpacesRule())