[Zope3-checkins] SVN: Zope3/trunk/ Issue 335 was fixed in revision 29305, but I also added a ftest.

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Feb 26 13:25:16 EST 2005


Log message for revision 29319:
  Issue 335 was fixed in revision 29305, but I also added a ftest.
  
  

Changed:
  U   Zope3/trunk/doc/CHANGES.txt
  U   Zope3/trunk/doc/TODO.txt
  A   Zope3/trunk/src/zope/app/debugskin/ftests.py

-=-
Modified: Zope3/trunk/doc/CHANGES.txt
===================================================================
--- Zope3/trunk/doc/CHANGES.txt	2005-02-26 17:59:35 UTC (rev 29318)
+++ Zope3/trunk/doc/CHANGES.txt	2005-02-26 18:25:15 UTC (rev 29319)
@@ -461,8 +461,10 @@
 
     Bug Fixes
 
-      - Fixed issue #349 (zapi help missing from the online help)
+      - Fixed issue #335 (debug layer does not work with Zope3-trunk)
 
+      - Fixed issue #338 (zapi help missing from the online help)
+
       - Fixed issue #349 (Adapter registry doesn't notice __bases__ changes.)
 
         Thanks to "foom" for the report and the fix.

Modified: Zope3/trunk/doc/TODO.txt
===================================================================
--- Zope3/trunk/doc/TODO.txt	2005-02-26 17:59:35 UTC (rev 29318)
+++ Zope3/trunk/doc/TODO.txt	2005-02-26 18:25:15 UTC (rev 29319)
@@ -82,8 +82,6 @@
 
 * 334: Failing RuntimeInfo tests 
 
-* 335: debug layer does not work with Zope3-trunk
-
 * 336: zpkg: defining 'zpkgsetup' resource shouldn't be necessary
 
 * 339: Improvements to generated forms

Added: Zope3/trunk/src/zope/app/debugskin/ftests.py
===================================================================
--- Zope3/trunk/src/zope/app/debugskin/ftests.py	2005-02-26 17:59:35 UTC (rev 29318)
+++ Zope3/trunk/src/zope/app/debugskin/ftests.py	2005-02-26 18:25:15 UTC (rev 29319)
@@ -0,0 +1,41 @@
+##############################################################################
+#
+# Copyright (c) 2003, 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Functional Tests for Code Documentation Module.
+
+$Id: ftests.py 29309 2005-02-26 14:16:04Z srichter $
+"""
+import unittest
+from zope.app.testing.functional import BrowserTestCase
+
+class DebugSkinTests(BrowserTestCase):
+
+    def testNotFound(self):
+        response = self.publish('/++skin++Debug/foo', 
+                                basic='mgr:mgrpw', handle_errors=True)
+        self.assertEqual(response.getStatus(), 200)
+        body = response.getBody()
+        self.assert_(body.find(
+            'zope.publisher.interfaces.NotFound') > 0)
+        self.assert_(body.find(
+            'raise NotFound(self.context, name, request)') > 0)
+        self.checkForBrokenLinks(body, '/++skin++Debug/foo',
+                                 basic='mgr:mgrpw')
+
+def test_suite():
+    return unittest.TestSuite((
+        unittest.makeSuite(DebugSkinTests),
+        ))
+
+if __name__ == '__main__':
+    unittest.main(defaultTest='test_suite')


Property changes on: Zope3/trunk/src/zope/app/debugskin/ftests.py
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the Zope3-Checkins mailing list