def test_GenerateXMLOneProperty(self):

        server = Session("www.example.com")
        request = PrincipalMatch(server, "/", (davxml.getetag,))
        os = StringIO()
        request.generateXML(os)
        self.assertEqual(os.getvalue(), """<?xml version='1.0' encoding='utf-8'?>
<ns0:principal-match xmlns:ns0="DAV:">
  <ns0:self />
  <ns0:prop>
    <ns0:getetag />
  </ns0:prop>
</ns0:principal-match>
""".replace("\n", "\r\n")
        )
    def test_GenerateXMLOneProperty(self):

        server = Session("www.example.com")
        request = PrincipalMatch(server, "/", (davxml.getetag, ))
        os = StringIO()
        request.generateXML(os)
        self.assertEqual(
            os.getvalue(), """<?xml version='1.0' encoding='utf-8'?>
<ns0:principal-match xmlns:ns0="DAV:">
  <ns0:self />
  <ns0:prop>
    <ns0:getetag />
  </ns0:prop>
</ns0:principal-match>
""".replace("\n", "\r\n"))