def METHOD_NAME(self):
    oRule = function.rule_506()
    self.assertTrue(oRule)
    self.assertEqual(oRule.name, 'function')
    self.assertEqual(oRule.identifier, '506')
    lExpected = [6]
    oRule.analyze(self.oFile)
    self.assertEqual(utils.extract_violation_lines_from_violation_object(oRule.violations), lExpected)