[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests -
test_directives.py:1.26
Jim Fulton
jim at zope.com
Sat Mar 6 12:49:20 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/component/tests
In directory cvs.zope.org:/tmp/cvs-serv21993/src/zope/app/component/tests
Modified Files:
test_directives.py
Log Message:
Changed most calls to queryAdapter to use interface calls instead.
=== Zope3/src/zope/app/component/tests/test_directives.py 1.25 => 1.26 ===
--- Zope3/src/zope/app/component/tests/test_directives.py:1.25 Sat Mar 6 11:50:18 2004
+++ Zope3/src/zope/app/component/tests/test_directives.py Sat Mar 6 12:48:47 2004
@@ -27,7 +27,6 @@
from zope.component import getView, queryView, queryResource
from zope.component import createObject
from zope.component import getDefaultViewName
-from zope.component import queryAdapter
from zope.component import getNamedAdapter, queryNamedAdapter
from zope.component import getUtility, queryUtility
@@ -110,7 +109,7 @@
# Full import is critical!
from zope.component.tests.components import Content, IApp, Comp
- self.assertEqual(queryAdapter(Content(), IV, None), None)
+ self.assertEqual(IV(Content(), None), None)
xmlconfig(StringIO(template % (
"""
@@ -154,7 +153,7 @@
# Full import is critical!
from zope.component.tests.components import Content, IApp, Comp
- self.assertEqual(queryAdapter(Content(), IV, None), None)
+ self.assertEqual(IV(Content(), None), None)
xmlconfig(StringIO(template % (
"""
More information about the Zope3-Checkins
mailing list