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

Jim Fulton jim at zope.com
Sat Mar 6 11:50:51 EST 2004


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

Modified Files:
	test_propfind.py 
Log Message:
Converted most getAdapter calls to use interface calls instead.


=== Zope3/src/zope/app/dav/tests/test_propfind.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/dav/tests/test_propfind.py:1.16	Fri Mar  5 23:17:23 2004
+++ Zope3/src/zope/app/dav/tests/test_propfind.py	Sat Mar  6 11:50:20 2004
@@ -19,7 +19,7 @@
 from datetime import datetime
 
 from zope.interface import implements, directlyProvides
-from zope.component import getView, getAdapter
+from zope.component import getView
 from zope.publisher.interfaces.http import IHTTPRequest
 from zope.pagetemplate.tests.util import normalize_xml
 from zope.schema import getFieldNamesInOrder
@@ -244,7 +244,7 @@
     def test_davpropdctitle(self):
         root = self.rootFolder
         zpt = traverse(root, 'zpt')
-        dc = getAdapter(zpt, IZopeDublinCore)
+        dc = IZopeDublinCore(zpt)
         dc.title = u'Test Title'
         body = '''<?xml version="1.0" ?>
         <propfind xmlns="DAV:">
@@ -285,7 +285,7 @@
     def test_davpropdccreated(self):
         root = self.rootFolder
         zpt = traverse(root, 'zpt')
-        dc = getAdapter(zpt, IZopeDublinCore)
+        dc = IZopeDublinCore(zpt)
         dc.created = datetime.utcnow()
         body = '''<?xml version="1.0" ?>
         <propfind xmlns="DAV:">
@@ -327,7 +327,7 @@
     def test_davpropdcsubjects(self):
         root = self.rootFolder
         zpt = traverse(root, 'zpt')
-        dc = getAdapter(zpt, IZopeDublinCore)
+        dc = IZopeDublinCore(zpt)
         dc.subjects = (u'Bla', u'Ble', u'Bli')
         body = '''<?xml version="1.0" ?>
         <propfind xmlns="DAV:">




More information about the Zope3-Checkins mailing list