def test_fix_rule_005(self):
     oRule = entity.rule_005()
     oRule.fix(self.oFile)
     oRule.analyze(self.oFile)
     self.assertEqual(oRule.violations, [])
     self.assertEqual(self.oFile.lines[49].line, 'entity ENTITY1 is')
     self.assertEqual(self.oFile.lines[50].line, '   generic  (')
    def test_rule_005(self):
        oRule = entity.rule_005()
        self.assertTrue(oRule)
        self.assertEqual(oRule.name, 'entity')
        self.assertEqual(oRule.identifier, '005')

        dExpected = [49]
        oRule.analyze(oFile)
        self.assertEqual(oRule.violations, dExpected)
 def test_fix_rule_005(self):
     oRule = entity.rule_005()
     oRule.fix(oFile)
     oRule.analyze(oFile)
     self.assertEqual(oRule.violations, [])
     self.assertEqual(oFile.lines[51].line, '   generic  (')