cybertools/z2/tests.py
helmutm 44fb2e3142 set up basic/generic view stuff in in 'view' package; move z2-independent stuff to 'view' package
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3790 fd906abe-77d9-0310-91a1-e0d9ade77398
2010-03-28 16:31:53 +00:00

37 lines
729 B
Python
Executable file

#! /usr/bin/python
"""
Tests for the 'cybertools.z2' package.
$Id$
"""
import unittest, doctest
from zope.testing.doctestunit import DocFileSuite
try:
from Products.Five import BrowserView
ignore = False
except ImportError:
BrowserView = None
ignore = True
class Test(unittest.TestCase):
"Basic tests for the z2 package."
def testBasicStuff(self):
pass
def test_suite():
if ignore:
return unittest.TestSuite(())
flags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
return unittest.TestSuite((
unittest.makeSuite(Test),
DocFileSuite('README.txt', optionflags=flags),
))
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')