def METHOD_NAME(self):
    oRule = rule.Rule()
    self.assertEqual(oRule.violations, [])
    oTokens = tokens.New(0, 0, [])
    oViolation = violation.New(0, oTokens, '')
    oRule.add_violation(oViolation)
    self.assertEqual(len(oRule.violations), 1)
    oRule.add_violation(oViolation)
    oRule.add_violation(oViolation)
    self.assertEqual(len(oRule.violations), 3)