'Assert that C{text} is parsed and assembled to the same value as what
C{expectedFormatted} is assembled to. This provides a way to ignore
meaningless differences in the formatting structure that would be
difficult to detect without rendering the structures.'

def assertAssembledEqually(self, text, expectedFormatted):

    formatted = irc.parseFormattedText(text)
    self.assertAssemblesTo(formatted, expectedFormatted)
