Back to index

plone3  3.1.7
tests.py
Go to the documentation of this file.
00001 import unittest
00002 from zope.testing import doctest
00003 
00004 def test_suite():
00005     from Testing.ZopeTestCase import ZopeDocFileSuite
00006     try:
00007         from Products.PloneTestCase.layer import ZCMLLayer
00008     except ImportError:
00009         from collective.testing.layer import ZCMLLayer
00010     suite = ZopeDocFileSuite('README.txt',
00011                              package="wicked.atcontent",
00012                              optionflags = doctest.REPORT_ONLY_FIRST_FAILURE | doctest.ELLIPSIS
00013                              )
00014     suite.layer = ZCMLLayer
00015     return unittest.TestSuite((suite))
00016     
00017