Esempio n. 1
0
 def test_fix_fule_026(self):
     oRule = instantiation.rule_026()
     oRule.fix(self.oFileGeneric)
     oRule.analyze(self.oFileGeneric)
     self.assertEqual(oRule.violations, [])
     self.assertEqual(self.oFileGeneric.lines[86].line, '    port map (')
     self.assertEqual(self.oFileGeneric.lines[87].line, '      PORT_1 => w_port_1,')
    def test_rule_026(self):
        oRule = instantiation.rule_026()
        self.assertTrue(oRule)
        self.assertEqual(oRule.name, 'instantiation')
        self.assertEqual(oRule.identifier, '026')

        dExpected = [utils.add_violation(86)]
        oRule.analyze(oFileGeneric)
        self.assertEqual(oRule.violations, dExpected)
Esempio n. 3
0
 def test_rule_026(self):
     oRule = instantiation.rule_026()
     self.assertTrue(oRule)
     self.assertEqual(oRule.name, 'instantiation')
     self.assertEqual(oRule.identifier, '026')
     self.assertTrue(oRule.depricated)