def test_toxml(self):
     """
     L{WebDAVDocument.toxml} returns a C{str} giving the XML representation
     of the L{WebDAVDocument} instance.
     """
     document = WebDAVDocument(self.element)
     self.assertEquals(document, WebDAVDocument.fromString(document.toxml()))
Exemple #2
0
 def test_toxml(self):
     """
     L{WebDAVDocument.toxml} returns a C{str} giving the XML representation
     of the L{WebDAVDocument} instance.
     """
     document = WebDAVDocument(self.element)
     self.assertEquals(document,
                       WebDAVDocument.fromString(document.toxml()))