[Zope3-checkins] CVS: Zope3/src/zope/app/apidoc/classmodule - ftests.py:1.2

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Mar 29 21:00:33 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/apidoc/classmodule
In directory cvs.zope.org:/tmp/cvs-serv12122/src/zope/app/apidoc/classmodule

Modified Files:
	ftests.py 
Log Message:


Added a set of functional tests for functions.




=== Zope3/src/zope/app/apidoc/classmodule/ftests.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/apidoc/classmodule/ftests.py:1.1	Sun Mar 28 18:40:12 2004
+++ Zope3/src/zope/app/apidoc/classmodule/ftests.py	Mon Mar 29 21:00:29 2004
@@ -59,8 +59,18 @@
         self.checkForBrokenLinks(
             body, '/++apidoc++/Class/zope/app/apidoc/APIDocumentation',
             basic='mgr:mgrpw')
+
+    def testFunctionDetailsView(self):
+        response = self.publish(
+            '/++apidoc++/Class/zope/app/apidoc/handleNamespace',
+            basic='mgr:mgrpw')
+        self.assertEqual(response.getStatus(), 200)
+        body = response.getBody()
+        self.assert_(body.find('handleNamespace(name, parameters, pname,') > 0)
+        self.checkForBrokenLinks(
+            body, '/++apidoc++/Class/zope/app/apidoc/handleNamesapce',
+            basic='mgr:mgrpw')
         
-    
 
 def test_suite():
     return unittest.TestSuite((




More information about the Zope3-Checkins mailing list