Esempio n. 1
0
 def test_rule_006(self):
     oRule = comment.rule_006()
     dExpected = []
     oRule.fix(oFileProcess)
     oRule.analyze(oFileProcess)
     self.assertEqual(oRule.violations, dExpected)
     self.assertEqual(oFileProcess.lines[37].line, '      variable a : integer 0 to 10;        -- comment')
     self.assertEqual(oFileProcess.lines[38].line, '      variable b : natural 0 to 256;       -- comment')
Esempio n. 2
0
 def test_rule_006(self):
     oRule = comment.rule_006()
     dExpected = ['36-39']
     oRule.analyze(oFileProcess)
     self.assertEqual(oRule.violations, dExpected)