def test_rule_022(self): oRule = architecture.rule_022() self.assertTrue(oRule) self.assertEqual(oRule.name, 'architecture') self.assertEqual(oRule.identifier, '022') dExpected = [31] oRule.analyze(oFile) self.assertEqual(oRule.violations, dExpected)
def test_fix_rule_022(self): oRule = architecture.rule_022() dExpected = [] oRule.fix(self.oFile) oRule.analyze(self.oFile) self.assertEqual(oRule.violations, dExpected)