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

Gintautas Miliauskas gintas at pov.lt
Fri Mar 26 17:11:49 EST 2004


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

Modified Files:
	test_message.py 
Log Message:
Got rid of 'usage', which is now obsolete and no longer available.


=== Products3/z3checkins/tests/test_message.py 1.24 => 1.25 ===
--- Products3/z3checkins/tests/test_message.py:1.24	Tue Mar 16 14:58:38 2004
+++ Products3/z3checkins/tests/test_message.py	Fri Mar 26 17:11:48 2004
@@ -425,18 +425,16 @@
 class MessageTestView:
     def __init__(self, context, request):
         self.context = context
-    def __call__(self, template_usage='', same_as_previous=False):
+    def __call__(self, same_as_previous=False):
         result = 'msg%d' % self.context.date
         if same_as_previous:
             result += '*'
-        if template_usage:
-            result += '[%s]' % template_usage
         return result + '\n'
 
 class BookmarkTestView:
     def __init__(self, context, request):
         self.context = context
-    def __call__(self, template_usage='', same_as_previous=False):
+    def __call__(self, same_as_previous=False):
         return '-\n'
 
 class RequestStub(dict):
@@ -665,7 +663,6 @@
                         'c': MessageStub(date=3, log_message='yyy')}
         view.request = RequestStub()
         view.index = view
-        view.index.usage = ''
         getService(None, servicenames.Presentation).provideView(
                 ICheckinMessage, 'html', IRequest, MessageTestView)
 
@@ -673,9 +670,6 @@
         self.assertEquals(res, 'msg3\nmsg2\nmsg1*\n')
         res = view.renderCheckins(start=1, size=1)
         self.assertEquals(res, 'msg2\n')
-        view.index.usage = 'sidebar'
-        res = view.renderCheckins()
-        self.assertEquals(res, 'msg3[sidebar]\nmsg2[sidebar]\nmsg1*[sidebar]\n')
 
     def test_renderCheckins_with_bookmarks(self):
         from zopeproducts.z3checkins.message import ContainerView
@@ -686,7 +680,6 @@
                         'c': MessageStub(date=3, log_message='yyy')}
         view.request = RequestStub()
         view.index = view
-        view.index.usage = ''
         view.bookmarks = lambda: [1]
         getService(None, servicenames.Presentation).provideView(
                 ICheckinMessage, 'html', IRequest, MessageTestView)




More information about the Zope3-Checkins mailing list