def test_rule_002(self): oRule = architecture.rule_002() dExpected = [14] oRule.analyze(oFile) self.assertEqual(oRule.violations, dExpected)
def test_rule_002_exists(self): oRule = architecture.rule_002() self.assertTrue(oRule) self.assertEqual(oRule.name, 'architecture') self.assertEqual(oRule.identifier, '002')