[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ Restored
"add_registration" menu
Dmitry Vasiliev
dima at hlabs.spb.ru
Thu Jan 5 08:31:14 EST 2006
Log message for revision 41146:
Restored "add_registration" menu
Changed:
A Zope3/trunk/src/zope/app/component/browser/ftests.py
U Zope3/trunk/src/zope/app/menus.zcml
-=-
Added: Zope3/trunk/src/zope/app/component/browser/ftests.py
===================================================================
--- Zope3/trunk/src/zope/app/component/browser/ftests.py 2006-01-05 12:27:06 UTC (rev 41145)
+++ Zope3/trunk/src/zope/app/component/browser/ftests.py 2006-01-05 13:31:14 UTC (rev 41146)
@@ -0,0 +1,39 @@
+##############################################################################
+#
+# Copyright (c) 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
+
+$Id$
+"""
+import unittest
+from zope.app.testing import functional
+
+
+class RegistrationViewTests(functional.BrowserTestCase):
+
+ def testRegistrationView(self):
+ response = self.publish(
+ '/++etc++site/default/++registrations++/@@index.html',
+ basic='mgr:mgrpw',
+ handle_errors=True)
+ self.assertEqual(response.getStatus(), 200)
+ body = response.getBody()
+ self.assert_('Registration Manager' in body)
+
+
+def test_suite():
+ return unittest.makeSuite(RegistrationViewTests)
+
+
+if __name__ == '__main__':
+ unittest.main(defaultTest='test_suite')
Property changes on: Zope3/trunk/src/zope/app/component/browser/ftests.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: Zope3/trunk/src/zope/app/menus.zcml
===================================================================
--- Zope3/trunk/src/zope/app/menus.zcml 2006-01-05 12:27:06 UTC (rev 41145)
+++ Zope3/trunk/src/zope/app/menus.zcml 2006-01-05 13:31:14 UTC (rev 41146)
@@ -28,4 +28,10 @@
description="Menu of objects to be added to site management folders"
/>
+ <menu
+ id="add_registration"
+ title="Add Registration"
+ description="Menu of addable configuration objects"
+ />
+
</configure>
More information about the Zope3-Checkins
mailing list