[Zope3-checkins] CVS: Zope3/src/zope/app/utilities/tests - test_content.py:1.9

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


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

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


=== Zope3/src/zope/app/utilities/tests/test_content.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/utilities/tests/test_content.py:1.8	Wed Mar  3 05:38:56 2004
+++ Zope3/src/zope/app/utilities/tests/test_content.py	Sat Mar  6 11:50:34 2004
@@ -97,14 +97,14 @@
         service = zapi.getService(self.rootFolder, BrowserMenu)
         menu = service.getLocalMenu('add_content')
         self.assertEqual('TestDoc', menu['1'].title)
-        mi = zapi.getAdapter(self.reg.getComponent(), IContentComponentMenuItem)
+        mi = IContentComponentMenuItem(self.reg.getComponent())
         self.assert_(mi._menuItem != None)
         self.assertEqual(mi._menu, menu)
 
     def test_deactivated(self):
         self.test_activated()
         self.reg.deactivated()
-        mi = zapi.getAdapter(self.reg.getComponent(), IContentComponentMenuItem)
+        mi = IContentComponentMenuItem(self.reg.getComponent())
         self.assertEqual(mi._menuItem, None)
         self.assertEqual(mi._menu, None)
         self.assertEqual(self.reg.getComponent().name, None)




More information about the Zope3-Checkins mailing list