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 """ Unit tests for browser module.
00014 
00015 $Id: tests.py 71093 2006-11-07 13:54:29Z yuppie $
00016 """
00017 
00018 import unittest
00019 from Testing import ZopeTestCase
00020 
00021 from Products.CMFCalendar.testing import FunctionalLayer
00022 
00023 
00024 def test_suite():
00025     suite = unittest.TestSuite()
00026     s = ZopeTestCase.FunctionalDocFileSuite('event.txt')
00027     s.layer = FunctionalLayer
00028     suite.addTest(s)
00029     return suite
00030 
00031 if __name__ == '__main__':
00032     from Products.CMFCore.testing import run
00033     run(test_suite())