Back to index

plone3  3.1.7
tests.py
Go to the documentation of this file.
00001 from unittest import TestSuite, main
00002 from Testing.ZopeTestCase import ZopeDocFileSuite
00003 from Testing.ZopeTestCase import FunctionalDocFileSuite
00004 
00005 from zope.component import testing, provideAdapter
00006 from zope.traversing.adapters import DefaultTraversable
00007 from zope.publisher.browser import BrowserLanguages
00008 from zope.publisher.http import HTTPCharsets
00009 
00010 __docformat__ = "reStructuredText"
00011 
00012 def setUp(test):
00013     testing.setUp(test)
00014     provideAdapter(DefaultTraversable, (None,))
00015     provideAdapter(BrowserLanguages)
00016     provideAdapter(HTTPCharsets)
00017 
00018 def test_suite():
00019     return TestSuite([
00020         #DocTestSuite('five.customerize.browser'),
00021         ZopeDocFileSuite('zpt.txt', package="five.customerize",
00022                          setUp=setUp, tearDown=testing.tearDown),
00023         ZopeDocFileSuite('customerize.txt', package="five.customerize"),
00024         FunctionalDocFileSuite('browser.txt', package="five.customerize")
00025         ])
00026 
00027 if __name__ == '__main__':
00028     main(defaultTest='test_suite')