Back to index

plone3  3.1.7
tests.py
Go to the documentation of this file.
00001 import unittest
00002 from Testing.ZopeTestCase import ZopeDocFileSuite
00003 from Testing.ZopeTestCase import FunctionalDocFileSuite
00004 
00005 def test_suite():
00006     if __name__ not in ('five.localsitemanager',
00007                         'five.localsitemanager.tests',
00008                         '__main__'):
00009         # a safety net for when five.localsitemanager is manged into sys.path
00010         # of a zope2 product
00011         return unittest.TestSuite()
00012 
00013     return unittest.TestSuite([
00014         ZopeDocFileSuite('localsitemanager.txt',
00015                          package="five.localsitemanager"),
00016         FunctionalDocFileSuite('browser.txt',
00017                                package="five.localsitemanager")
00018         ])
00019 
00020 if __name__ == '__main__':
00021     unittest.main(defaultTest='test_suite')