[Zope3-checkins] CVS: Zope3/src/zope/app/ftests - __init__.py:1.1 test_introspector.py:1.1

Albertas Agejevas alga@codeworks.lt
Wed, 2 Jul 2003 07:02:18 -0400


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

Added Files:
	__init__.py test_introspector.py 
Log Message:
Updated the introspector to use the Interface service instead of ++module++.
Added a functional test.


=== Added File Zope3/src/zope/app/ftests/__init__.py ===
# Not empty


=== Added File Zope3/src/zope/app/ftests/test_introspector.py ===
##############################################################################
#
# Copyright (c) 2003 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.
#
##############################################################################
"""Introspector funcional tests

$Id: test_introspector.py,v 1.1 2003/07/02 11:02:17 alga Exp $
"""

import unittest
from zope.testing.functional import BrowserTestCase


class TestIntrospector(BrowserTestCase):

    def test_introspector(self):
        response = self.publish('/@@classBrowser.html', basic='mgr:mgrpw')
        self.checkForBrokenLinks(response.getBody(), response.getPath(),
                                 basic='mgr:mgrpw')

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


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