コード例 #1
0
    def test_rule_002(self):
        oRule = architecture.rule_002()

        dExpected = [14]
        oRule.analyze(oFile)
        self.assertEqual(oRule.violations, dExpected)
コード例 #2
0
 def test_rule_002_exists(self):
     oRule = architecture.rule_002()
     self.assertTrue(oRule)
     self.assertEqual(oRule.name, 'architecture')
     self.assertEqual(oRule.identifier, '002')