[Zope-CVS] CVS: Packages/Moztop/moztopsupport/dav/tests - test_propfind.py:1.6
Sidnei da Silva
sidnei@x3ng.com.br
Mon, 28 Apr 2003 16:11:38 -0400
Update of /cvs-repository/Packages/Moztop/moztopsupport/dav/tests
In directory cvs.zope.org:/tmp/cvs-serv19247/moztopsupport/dav/tests
Modified Files:
test_propfind.py
Log Message:
Humm... uncommited changes
=== Packages/Moztop/moztopsupport/dav/tests/test_propfind.py 1.5 => 1.6 ===
--- Packages/Moztop/moztopsupport/dav/tests/test_propfind.py:1.5 Sat Mar 29 12:09:54 2003
+++ Packages/Moztop/moztopsupport/dav/tests/test_propfind.py Mon Apr 28 16:11:37 2003
@@ -33,7 +33,7 @@
from zope.schema import getFieldNamesInOrder
from zope.app.interfaces.container import IReadContainer
-from moztopsupport.dav import propfind
+from moztopsupport.dav import propfind
from moztopsupport.dav.views import ZPTDAVSource
from moztopsupport.dav.interfaces import IDAVSource, IDAVSchema
@@ -77,7 +77,7 @@
def _createRequest(body=None, headers=None):
if body is None:
body = '''<?xml version="1.0" encoding="utf-8" ?>
-
+
<D:propfind xmlns:D="DAV:">
<D:prop xmlns:R="http://www.foo.bar/boxschema/">
<R:bigbox/>
@@ -94,7 +94,7 @@
if headers is not None:
for key, value in headers.items():
_environ[key.upper()] = value
-
+
request = TestRequest(StringIO(body), StringIO(), _environ)
request.setViewType(IBrowserPresentation)
return request
@@ -121,7 +121,7 @@
[AbsoluteURL])
provideView(None, 'PROPFIND', IBrowserPresentation,
[propfind.PROPFIND])
-
+
def test_contenttype1(self):
file = self.file
request = _createRequest(headers={'Content-type':'text/xml'})