def test_rule_009(self):
     oRule = variable.rule_009()
     self.assertTrue(oRule)
     self.assertEqual(oRule.name, 'variable')
     self.assertEqual(oRule.identifier, '009')
     dExpected = ['3-23']
     oRule.analyze(oFile)
     self.assertEqual(oRule.violations, dExpected)
Esempio n. 2
0
 def test_fix_rule_009(self):
     oRule = variable.rule_009()
     dExpected = []
     oRule.fix(self.oFile)
     oRule.analyze(self.oFile)
     self.assertEqual(oRule.violations, dExpected)