'Verify that two strings represent the same XML document.
@param first: An XML string.
@type first: L{bytes}
@param second: An XML string that should match C{first}.
@type second: L{bytes}'

def assertXMLEqual(self, first, second):

    self.assertEqual(dom.parseString(first).toxml(), dom.parseString(second).toxml())
