[Zope3-checkins] CVS: Zope3/src/zope/app/dav/tests - test_propfind.py:1.11

Philipp von Weitershausen philikon at philikon.de
Tue Feb 24 11:51:31 EST 2004


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

Modified Files:
	test_propfind.py 
Log Message:


This test was adding ZPTPages for a functional DAV test. What it
really needs to test is accessing dublin core properties via DAV,
which works with any persistent annotatable object. Thus, use one of
those instead of depending on an maybe-in-the-future-optional package.




=== Zope3/src/zope/app/dav/tests/test_propfind.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/dav/tests/test_propfind.py:1.10	Fri Nov 21 12:11:34 2003
+++ Zope3/src/zope/app/dav/tests/test_propfind.py	Tue Feb 24 11:51:30 2004
@@ -16,33 +16,37 @@
 """
 __metaclass__ = type
 
-from zope.app import zapi
-from zope.app.tests import ztapi
-from datetime import datetime
-from unittest import TestCase, TestSuite, main, makeSuite
 from StringIO import StringIO
+from unittest import TestCase, TestSuite, main, makeSuite
+from datetime import datetime
+
+from zope.interface import implements
 from zope.component import getService, getView, getAdapter
+from zope.publisher.interfaces.http import IHTTPRequest
+from zope.pagetemplate.tests.util import normalize_xml
+from zope.schema import getFieldNamesInOrder
+from zope.schema.interfaces import IText, ITextLine, IDatetime, ISequence
+
+from zope.app import zapi
+from zope.app.tests import ztapi
+
 from zope.app.services.servicenames import Adapters
 from zope.app.traversing import traverse
 from zope.publisher.browser import TestRequest
 from zope.app.interfaces.file import IWriteFile
-from zope.app.interfaces.content.zpt import IZPTPage
 from zope.app.services.tests.placefulsetup import PlacefulSetup
-from zope.publisher.interfaces.http import IHTTPRequest
 from zope.app.browser.absoluteurl import AbsoluteURL
-from zope.pagetemplate.tests.util import normalize_xml
-from zope.schema import getFieldNamesInOrder
 from zope.app.interfaces.container import IReadContainer
-from zope.schema.interfaces import IText, ITextLine, IDatetime, ISequence
-from zope.app.dav import propfind
-from zope.app.interfaces.dav import IDAVSchema
-from zope.app.dav.widget import TextDAVWidget, SequenceDAVWidget
-from zope.app.dav.globaldavschemaservice import provideInterface
 from zope.app.interfaces.dublincore import IZopeDublinCore
 from zope.app.dublincore.annotatableadapter import ZDCAnnotatableAdapter
 from zope.app.interfaces.annotation import IAnnotatable, IAnnotations
 from zope.app.attributeannotations import AttributeAnnotations
-from zope.interface import implements
+
+from zope.app.dav import propfind
+from zope.app.interfaces.dav import IDAVSchema
+from zope.app.dav.widget import TextDAVWidget, SequenceDAVWidget
+from zope.app.dav.globaldavschemaservice import provideInterface
+
 import zope.app.location
 
 class Folder(zope.app.location.Location):
@@ -80,7 +84,7 @@
 
 class FooZPT(zope.app.location.Location):
 
-    implements(IAnnotatable, IZPTPage)
+    implements(IAnnotatable)
 
     def getSource(self):
         return 'bla bla bla'




More information about the Zope3-Checkins mailing list