[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/zcmlmodule/__init__.py Made tests less brittle

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat May 15 12:31:38 EDT 2004


Log message for revision 24718:
Made tests less brittle



-=-
Modified: Zope3/trunk/src/zope/app/apidoc/zcmlmodule/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/zcmlmodule/__init__.py	2004-05-15 16:26:36 UTC (rev 24717)
+++ Zope3/trunk/src/zope/app/apidoc/zcmlmodule/__init__.py	2004-05-15 16:31:38 UTC (rev 24718)
@@ -174,10 +174,13 @@
       >>> module.get('foo') is None
       True
 
-      >>> print '\n'.join([ns.getShortName() for n, ns in module.items()][1:4])
-      browser
-      dav
-      event
+      >>> names = [ns.getShortName() for n, ns in module.items()]
+      >>> 'browser' in names
+      True
+      >>> 'meta' in names
+      True
+      >>> 'ALL' in names
+      True
     """
 
     implements(IDocumentationModule)




More information about the Zope3-Checkins mailing list