Back to index

plone3  3.1.7
tests.py
Go to the documentation of this file.
00001 ##############################################################################
00002 #
00003 # Copyright (c) 2006 Zope Corporation and Contributors. All Rights Reserved.
00004 #
00005 # This software is subject to the provisions of the Zope Public License,
00006 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
00007 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
00008 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00009 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
00010 # FOR A PARTICULAR PURPOSE.
00011 #
00012 ##############################################################################
00013 """CMFDefault browser tests.
00014 
00015 $Id: tests.py 72362 2007-02-04 15:31:51Z yuppie $
00016 """
00017 
00018 import unittest
00019 from Testing import ZopeTestCase
00020 from zope.testing import doctest
00021 
00022 from Products.CMFDefault.testing import FunctionalLayer
00023 
00024 
00025 def test_suite():
00026     suite = unittest.TestSuite()
00027     suite.addTest(doctest.DocFileSuite('folder.txt',
00028                                     optionflags=doctest.NORMALIZE_WHITESPACE))
00029     s = ZopeTestCase.FunctionalDocFileSuite('metadata.txt')
00030     s.layer = FunctionalLayer
00031     suite.addTest(s)
00032     s = ZopeTestCase.FunctionalDocFileSuite('document.txt')
00033     s.layer = FunctionalLayer
00034     suite.addTest(s)
00035     return suite
00036 
00037 if __name__ == '__main__':
00038     from Products.CMFCore.testing import run
00039     run(test_suite())