[Zope3-checkins] CVS: Products3/z3checkins/tests - test_message.py:1.24

Gintautas Miliauskas gintas at pov.lt
Tue Mar 16 14:58:39 EST 2004


Update of /cvs-repository/Products3/z3checkins/tests
In directory cvs.zope.org:/tmp/cvs-serv22712/tests

Modified Files:
	test_message.py 
Log Message:
Keeping up with Zope3 CVS.


=== Products3/z3checkins/tests/test_message.py 1.23 => 1.24 ===
--- Products3/z3checkins/tests/test_message.py:1.23	Sat Mar  6 17:16:50 2004
+++ Products3/z3checkins/tests/test_message.py	Tue Mar 16 14:58:38 2004
@@ -464,9 +464,8 @@
     def setUp(self):
         PlacelessSetup.setUp(self)
         from zopeproducts.z3checkins.message import MessageContainerAdapter
-        getService(None, 'Adapters').provideAdapter(None,
-                                                    IMessageArchive,
-                                                    [MessageContainerAdapter])
+        getService(None, servicenames.Adapters).register(
+                [None], IMessageArchive, "", MessageContainerAdapter)
 
     def test_checkins(self):
         from zopeproducts.z3checkins.message import ContainerView
@@ -668,8 +667,7 @@
         view.index = view
         view.index.usage = ''
         getService(None, servicenames.Presentation).provideView(
-                ICheckinMessage, 'html', IRequest,
-                [MessageTestView])
+                ICheckinMessage, 'html', IRequest, MessageTestView)
 
         res = view.renderCheckins()
         self.assertEquals(res, 'msg3\nmsg2\nmsg1*\n')
@@ -691,11 +689,9 @@
         view.index.usage = ''
         view.bookmarks = lambda: [1]
         getService(None, servicenames.Presentation).provideView(
-                ICheckinMessage, 'html', IRequest,
-                [MessageTestView])
+                ICheckinMessage, 'html', IRequest, MessageTestView)
         getService(None, servicenames.Presentation).provideView(
-                IBookmark, 'html', IRequest,
-                [BookmarkTestView])
+                IBookmark, 'html', IRequest, BookmarkTestView)
 
         res = view.renderCheckins()
         self.assertEquals(res, 'msg3\nmsg2\n-\nmsg1*\n')
@@ -732,9 +728,8 @@
     def setUp(self):
         PlacelessSetup.setUp(self)
         from zopeproducts.z3checkins.message import MessageContainerAdapter
-        getService(None, 'Adapters').provideAdapter(None,
-                                                    IMessageArchive,
-                                                    [MessageContainerAdapter])
+        getService(None, servicenames.Adapters).register(
+                [None], IMessageArchive, "", MessageContainerAdapter)
 
     def test_body_strange(self):
         from zopeproducts.z3checkins.message import CheckinMessageView




More information about the Zope3-Checkins mailing list