def test_fix_rule_009(self):
     oRule = type_definition.rule_009()
     dExpected = []
     oRule.fix(self.oFile)
     oRule.analyze(self.oFile)
     self.assertEqual(oRule.violations, dExpected)
     self.assertEqual(self.oFile.lines[6].line, '   type a is (')
     self.assertEqual(self.oFile.lines[7].line, ' B, C,')
 def test_rule_009(self):
     oRule = type_definition.rule_009()
     self.assertTrue(oRule)
     self.assertEqual(oRule.name, 'type')
     self.assertEqual(oRule.identifier, '009')
     dExpected = utils.add_violation_list([6, 29])
     oRule.analyze(oFile)
     self.assertEqual(oRule.violations, dExpected)