Back to index

plone3  3.1.7
test_doctests.py
Go to the documentation of this file.
00001 ##############################################################################
00002 #
00003 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights
00004 # Reserved.
00005 #
00006 # This software is subject to the provisions of the Zope Public License,
00007 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this
00008 # distribution.
00009 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
00010 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00011 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
00012 # FOR A PARTICULAR PURPOSE.
00013 #
00014 ##############################################################################
00015 
00016 import unittest
00017 from Testing import ZopeTestCase
00018 
00019 ZopeTestCase.installProduct('PythonScripts')
00020 ZopeTestCase.installProduct('PluginRegistry')
00021 ZopeTestCase.installProduct('PluggableAuthService')
00022 ZopeTestCase.installProduct('GenericSetup')
00023 
00024 def test_suite():
00025     suite = unittest.TestSuite()
00026     package = 'Products.PluggableAuthService.plugins.tests'
00027     tests = [
00028         ZopeTestCase.FunctionalDocFileSuite('ChallengeProtocolChooser.txt',
00029                                             package=package),
00030         ]
00031     for t in tests:
00032         suite.addTest(t)
00033     return suite