[Zope3-checkins] CVS: Zope3/src/zope/app/traversing/tests -
test_physicallocationadapters.py:1.17
Jim Fulton
jim at zope.com
Sat Mar 6 11:51:03 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/traversing/tests
Modified Files:
test_physicallocationadapters.py
Log Message:
Converted most getAdapter calls to use interface calls instead.
=== Zope3/src/zope/app/traversing/tests/test_physicallocationadapters.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/traversing/tests/test_physicallocationadapters.py:1.16 Sun Dec 7 06:31:14 2003
+++ Zope3/src/zope/app/traversing/tests/test_physicallocationadapters.py Sat Mar 6 11:50:32 2004
@@ -18,7 +18,6 @@
from unittest import TestCase, main, makeSuite
from zope.app.tests.placelesssetup import PlacelessSetup
from zope.app.tests import ztapi
-from zope.component import getAdapter
from zope.interface import implements
from zope.app.interfaces.traversing import IContainmentRoot
@@ -67,7 +66,7 @@
f2 = contained(ServiceManagerContainer(), f1, name='f2')
f3 = contained(C(), f2, name='f3')
- adapter = getAdapter(f3, IPhysicallyLocatable)
+ adapter = IPhysicallyLocatable(f3)
self.assertEqual(adapter.getPath(), '/f1/f2/f3')
self.assertEqual(adapter.getName(), 'f3')
More information about the Zope3-Checkins
mailing list