Exemplo n.º 1
0
 def test_rule_003(self):
     oRule = comment.rule_003()
     self.assertTrue(oRule)
     self.assertEqual(oRule.name, 'comment')
     self.assertEqual(oRule.identifier, '003')
     dExpected = ['26-33', '39-46']
     oRule.analyze(oFileProcess)
     self.assertEqual(oRule.violations, dExpected)
Exemplo n.º 2
0
 def test_rule_003(self):
     oRule = comment.rule_003()
     dExpected = []
     oRule.fix(oFileProcess)
     oRule.analyze(oFileProcess)
     self.assertEqual(oRule.violations, dExpected)