'Assert that C{formatted} and C{expectedFormatted} assemble to the same
value.'

def assertAssemblesTo(self, formatted, expectedFormatted):

    text = irc.assembleFormattedText(formatted)
    expectedText = irc.assembleFormattedText(expectedFormatted)
    self.assertEqual(irc.assembleFormattedText(formatted), expectedText, ('%r    (%r)    is    not    equivalent    to    %r    (%r)' % (text, formatted, expectedText, expectedFormatted)))
