'L{irc._FormattingState}s must have matching character attribute
values (bold, underline, etc) with the same values to be considered
equal.'

def test_equality(self):

    self.assertEqual(irc._FormattingState(), irc._FormattingState())
    self.assertEqual(irc._FormattingState(), irc._FormattingState(off=False))
    self.assertEqual(irc._FormattingState(bold=True, underline=True, off=False, reverseVideo=True, foreground=irc._IRC_COLORS['blue']), irc._FormattingState(bold=True, underline=True, off=False, reverseVideo=True, foreground=irc._IRC_COLORS['blue']))
    self.assertNotEqual(irc._FormattingState(bold=True), irc._FormattingState(bold=False))
