[Zope3-checkins] CVS: Zope3/src/zope/app/zptpage/tests - test_zptpage.py:1.6

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


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

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


=== Zope3/src/zope/app/zptpage/tests/test_zptpage.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/zptpage/tests/test_zptpage.py:1.5	Fri Mar  5 17:09:24 2004
+++ Zope3/src/zope/app/zptpage/tests/test_zptpage.py	Sat Mar  6 11:50:38 2004
@@ -24,7 +24,7 @@
 
 from zope.app.tests import ztapi
 from zope.app.index.interfaces.text import ISearchableText
-from zope.component import getAdapter, getView
+from zope.component import getView
 from zope.publisher.browser import TestRequest, BrowserView
 
 # Wow, this is a lot of work. :(
@@ -59,7 +59,7 @@
 
     def testSearchableText(self):
         page = ZPTPage()
-        searchableText = getAdapter(page, ISearchableText)
+        searchableText = ISearchableText(page)
 
         utext = u'another test\n' # The source will grow a newline if ommited
         html = u"<html><body>%s</body></html>\n" % (utext, )




More information about the Zope3-Checkins mailing list