[Zope3-checkins] CVS: Zope3/src/zope/app/container/browser/tests - test_directive.py:1.5

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Apr 15 09:25:27 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/container/browser/tests
In directory cvs.zope.org:/tmp/cvs-serv9769/src/zope/app/container/browser/tests

Modified Files:
	test_directive.py 
Log Message:


Updated tests to expect info.




=== Zope3/src/zope/app/container/browser/tests/test_directive.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/container/browser/tests/test_directive.py:1.4	Tue Mar 23 17:08:15 2004
+++ Zope3/src/zope/app/container/browser/tests/test_directive.py	Thu Apr 15 09:25:25 2004
@@ -11,7 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""'containerView' directive test
 
+$Id$
+"""
 import re
 import pprint
 import cStringIO
@@ -28,6 +31,7 @@
     
     def action(self, discriminator, callable, args):
         self.actions += ((discriminator, callable, args), )
+        self.info = 'info'
 
     def __repr__(self):
         stream = cStringIO.StringIO()
@@ -49,9 +53,7 @@
        'zmi_views',
        <InterfaceClass zope.app.container.browser.tests.test_directive.I>,
        u'Contents'),
-      <bound method GlobalBrowserMenuService.menuItem of """ \
-            """<zope.app.publisher.browser.globalbrowsermenuservice.""" \
-            """GlobalBrowserMenuService object>>,
+      <bound method GlobalBrowserMenuService.menuItem of <zope.app.publisher.browser.globalbrowsermenuservice.GlobalBrowserMenuService object>>,
       ('zmi_views',
        <InterfaceClass zope.app.container.browser.tests.test_directive.I>,
        '@@contents.html',
@@ -80,7 +82,8 @@
        'contents.html',
        [<InterfaceClass zope.app.container.browser.tests.test_directive.I>],
        <InterfaceClass zope.interface.Interface>,
-       'default')),
+       'default',
+       'info')),
      (None,
       <function checkPermission>,
       (None, 'zope.View')),
@@ -101,14 +104,13 @@
        'index.html',
        [<InterfaceClass zope.app.container.browser.tests.test_directive.I>],
        <InterfaceClass zope.interface.Interface>,
-       'default')),
+       'default',
+       'info')),
      (('browser:menuItem',
        'zmi_actions',
        <InterfaceClass zope.app.container.browser.tests.test_directive.I>,
        u'Add'),
-      <bound method GlobalBrowserMenuService.menuItem of """ \
-             """<zope.app.publisher.browser.globalbrowsermenuservice.""" \
-             """GlobalBrowserMenuService object>>,
+      <bound method GlobalBrowserMenuService.menuItem of <zope.app.publisher.browser.globalbrowsermenuservice.GlobalBrowserMenuService object>>,
       ('zmi_actions',
        <InterfaceClass zope.app.container.browser.tests.test_directive.I>,
        '@@+',
@@ -141,8 +143,8 @@
        '+',
        [<InterfaceClass zope.app.container.browser.tests.test_directive.I>],
        <InterfaceClass zope.interface.Interface>,
-       'default')))
-
+       'default',
+       'info')))
     """
     
        




More information about the Zope3-Checkins mailing list