[Zope3-checkins] CVS: Zope3/src/zope/app/dav/ftests -
test_propfind.py:1.6
Jim Fulton
jim at zope.com
Sat Mar 6 11:50:51 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/dav/ftests
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/dav/ftests
Modified Files:
test_propfind.py
Log Message:
Converted most getAdapter calls to use interface calls instead.
=== Zope3/src/zope/app/dav/ftests/test_propfind.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/dav/ftests/test_propfind.py:1.5 Wed Mar 3 12:06:31 2004
+++ Zope3/src/zope/app/dav/ftests/test_propfind.py Sat Mar 6 11:50:20 2004
@@ -35,7 +35,7 @@
def test_dctitle2(self):
self.addPage('/pt', u'<span />')
pt = traverse(self.getRootFolder(), '/pt')
- adapted = zapi.getAdapter(pt, IZopeDublinCore)
+ adapted = IZopeDublinCore(pt)
adapted.title = u'Test Title'
get_transaction().commit()
self.verifyPropOK(path='/pt', ns='http://purl.org/dc/1.1',
@@ -44,7 +44,7 @@
def test_dccreated(self):
self.addPage('/pt', u'<span />')
pt = traverse(self.getRootFolder(), '/pt')
- adapted = zapi.getAdapter(pt, IZopeDublinCore)
+ adapted = IZopeDublinCore(pt)
adapted.created = datetime.utcnow()
get_transaction().commit()
expect = str(adapted.created)
@@ -54,7 +54,7 @@
def test_dcsubject(self):
self.addPage('/pt', u'<span />')
pt = traverse(self.getRootFolder(), '/pt')
- adapted = zapi.getAdapter(pt, IZopeDublinCore)
+ adapted = IZopeDublinCore(pt)
adapted.subjects = (u'Bla', u'Ble', u'Bli')
get_transaction().commit()
expect = ', '.join(adapted.subjects)
More information about the Zope3-Checkins
mailing list