[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/site/browser/tests/test_directives.py The presentation service is gone.

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Sep 17 12:15:28 EDT 2004


Log message for revision 27566:
  
  The presentation service is gone.
  
  Adjust test to deal with new directive signature.
  
  


Changed:
  U   Zope3/trunk/src/zope/app/site/browser/tests/test_directives.py


-=-
Modified: Zope3/trunk/src/zope/app/site/browser/tests/test_directives.py
===================================================================
--- Zope3/trunk/src/zope/app/site/browser/tests/test_directives.py	2004-09-17 16:15:26 UTC (rev 27565)
+++ Zope3/trunk/src/zope/app/site/browser/tests/test_directives.py	2004-09-17 16:15:28 UTC (rev 27566)
@@ -49,13 +49,13 @@
     'IToolType'
 
     >>> view = context.actions[1]
-    >>> print '\n'.join([str(n) for n in view['discriminator']])
-    view
-    (<InterfaceClass zope.app.site.interfaces.ISiteManager>,)
-    manageIDummyUtilityTool.html
-    <InterfaceClass zope.publisher.interfaces.browser.IBrowserRequest>
-    default
-    <InterfaceClass zope.interface.Interface>
+    >>> from pprint import pprint 
+    >>> pprint([n for n in view['discriminator']])
+    ['view',
+     (<InterfaceClass zope.app.site.interfaces.ISiteManager>,
+      <InterfaceClass zope.publisher.interfaces.browser.IBrowserRequest>),
+     'manageIDummyUtilityTool.html',
+     <InterfaceClass zope.interface.Interface>]
     >>> view['callable'].__module__
     'zope.app.component.metaconfigure'
     >>> view['args'][4]
@@ -80,13 +80,13 @@
     'IToolType'
 
     >>> view = context.actions[1]
-    >>> print '\n'.join([str(n) for n in view['discriminator']])
-    view
-    (<InterfaceClass zope.app.site.interfaces.ISiteManager>,)
-    manageILocalServiceTool.html
-    <InterfaceClass zope.publisher.interfaces.browser.IBrowserRequest>
-    default
-    <InterfaceClass zope.interface.Interface>
+    >>> from pprint import pprint 
+    >>> pprint([n for n in view['discriminator']])
+    ['view',
+     (<InterfaceClass zope.app.site.interfaces.ISiteManager>,
+      <InterfaceClass zope.publisher.interfaces.browser.IBrowserRequest>),
+     'manageILocalServiceTool.html',
+     <InterfaceClass zope.interface.Interface>]
     >>> view['callable'].__module__
     'zope.app.component.metaconfigure'
     >>> view['args'][4]



More information about the Zope3-Checkins mailing list