[Zope3-checkins] CVS: Zope3/src/zope/app/dav/ftests - test_propfind.py:1.2

Sidnei da Silva sidnei@x3ng.com.br
Thu, 22 May 2003 11:11:29 -0400


Update of /cvs-repository/Zope3/src/zope/app/dav/ftests
In directory cvs.zope.org:/tmp/cvs-serv14523/src/zope/app/dav/ftests

Modified Files:
	test_propfind.py 
Log Message:
Changed use of encoding in DAV output as suggested by Fred. For UTF-8, the encoding pseudo-attribute of the XML declaration doesn't need to be set: it's UTF-8 by default if it isn't UTF-16.

=== Zope3/src/zope/app/dav/ftests/test_propfind.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/dav/ftests/test_propfind.py:1.1	Thu May 22 09:58:54 2003
+++ Zope3/src/zope/app/dav/ftests/test_propfind.py	Thu May 22 11:10:58 2003
@@ -66,7 +66,7 @@
                           prop='subjects', expect=expect, basic='mgr:mgrpw')
 
     def verifyPropOK(self, path, ns, prop, expect, basic):
-        body = """<?xml version="1.0" encoding="utf-8"?>
+        body = """<?xml version="1.0" ?>
         <propfind xmlns="DAV:">
         <prop xmlns:a0="%(ns)s">
         <a0:%(prop)s />
@@ -78,7 +78,7 @@
                               request_body=body)
         self.assertEquals(result.getStatus(), 207)
         s1 = normalize_xml(result.getBody())
-        s2 = normalize_xml("""<?xml version="1.0" encoding="utf-8"?>
+        s2 = normalize_xml("""<?xml version="1.0" ?>
         <multistatus xmlns="DAV:">
         <response>
         <href>http://localhost/pt</href>