[Zope3-checkins] CVS: Zope3/src/zope/app/site/browser/ftests - test_toolsoverview.py:1.1

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun Mar 21 11:02:14 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/site/browser/ftests
In directory cvs.zope.org:/tmp/cvs-serv2738/src/zope/app/site/browser/ftests

Added Files:
	test_toolsoverview.py 
Log Message:


Created functional test for tools overview UI.




=== Added File Zope3/src/zope/app/site/browser/ftests/test_toolsoverview.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (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.
#
##############################################################################
"""Tools Overview Functional Tests

$Id: test_toolsoverview.py,v 1.1 2004/03/21 16:02:14 srichter Exp $
"""
import unittest

from zope.testing.functional import BrowserTestCase


class TestToolsOverview(BrowserTestCase):

    def testToolsOverview(self):
        path = '/++etc++site/@@tools.html'
        # create the view
        response = self.publish(path, basic='mgr:mgrpw')
        self.assertEqual(response.getStatus(), 200)

        body = response.getBody()

        # test for broken links
        self.checkForBrokenLinks(body, path, basic='mgr:mgrpw')

        # We can't really test more here, since we do not know what type of
        # utilities will registered as tools.


def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestToolsOverview))
    return suite

if __name__=='__main__':
    unittest.main(defaultTest='test_suite')




More information about the Zope3-Checkins mailing list