def test_rule_003(self):
     oRule = variable.rule_003()
     self.assertTrue(oRule)
     self.assertEqual(oRule.name, 'variable')
     self.assertEqual(oRule.identifier, '003')
     dExpected = [8, 9, 12]
     oRule.analyze(oFile)
     self.assertEqual(oRule.violations, dExpected)
示例#2
0
 def test_rule_003(self):
     oRule = variable.rule_003()
     self.assertTrue(oRule)
     self.assertEqual(oRule.name, 'variable')
     self.assertEqual(oRule.identifier, '003')
     self.assertTrue(oRule.depricated)
示例#3
0
 def test_fix_rule_003(self):
     oRule = variable.rule_003()
     dExpected = []
     oRule.fix(self.oFile)
     oRule.analyze(self.oFile)
     self.assertEqual(oRule.violations, dExpected)