'Given a series of parsable XML strings, verify that
L{twisted.web._flatten.flatten} will flatten the L{Element} back to the
input when sent on a round trip.'

def test_roundTrip(self):

    fragments = ['<p>Hello,    world.</p>', '<p><!--    hello,    world    --></p>', '<p><![CDATA[Hello,    world.]]></p>', '<test1    xmlns:test2="urn:test2"><test2:test3></test2:test3></test1>', '<test1    xmlns="urn:test2"><test3></test3></test1>', '<p>\xe2\x98\x83</p>']
    deferreds = [self.assertFlattensTo(Element(loader=XMLString(xml)), xml) for xml in fragments]
    return gatherResults(deferreds)
