[Checkins] SVN: zope.introspectorui/trunk/src/zope/introspectorui/code.txt Update tests.

Uli Fouquet uli at gnufix.de
Wed Aug 13 08:28:51 EDT 2008


Log message for revision 89797:
  Update tests.

Changed:
  U   zope.introspectorui/trunk/src/zope/introspectorui/code.txt

-=-
Modified: zope.introspectorui/trunk/src/zope/introspectorui/code.txt
===================================================================
--- zope.introspectorui/trunk/src/zope/introspectorui/code.txt	2008-08-13 12:28:23 UTC (rev 89796)
+++ zope.introspectorui/trunk/src/zope/introspectorui/code.txt	2008-08-13 12:28:49 UTC (rev 89797)
@@ -129,7 +129,7 @@
 
 
   >>> pprint(view_util.getFunctionURLs())
-  [{'doc': 'Get an object denoted by a dotted name.\n    ',
+  [{'doc': 'Get an object denoted by a dotted name.',
     'name': 'resolve',
     'url': 'http://127.0.0.1/zope/introspector/util/resolve'},
   ...]
@@ -138,7 +138,8 @@
 We can also get a list of dicts that provide the function signatures::
 
   >>> view_util.getFunctions()
-  [{'fullname': 'get_function_signature(func)',
+  [{'doc': 'Return the signature of a function or method.',
+    'fullname': 'get_function_signature(func)',
     'name': 'get_function_signature',
     'signature': '(func)'},
    ...]
@@ -148,17 +149,22 @@
   >>> print view_code()
   <div>
     <h2>Module: <a href="...">zope</a>.<a href="...">code</a></h2>    
+  ...
     <div>
       Path: ...code.py
     </div>
   ...
 
-By default functions are presented as strings and not as links::
+By default functions are presented as strings and not as links. Also a
+docstring is presented, if it exists::
 
   >>> print view_util()
   <div>
   ...
-  <li>get_function_signature(func)</li>
+  ...<li>
+  ...<div>get_function_signature(func)</div>...
+  ...<div>Return the signature of a function or method.</div>...
+  ...<li>
   ...
 
 



More information about the Checkins mailing list