def test_fromString(self): """ The XML representation of L{WebDAVDocument} can be parsed into a L{WebDAVDocument} instance using L{WebDAVDocument.fromString}. """ doc = WebDAVDocument.fromString(self.serialized) self.assertEquals(doc, WebDAVDocument(self.element))
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()))