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)
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)
def test_fix_rule_003(self): oRule = variable.rule_003() dExpected = [] oRule.fix(self.oFile) oRule.analyze(self.oFile) self.assertEqual(oRule.violations, dExpected)