/usr/share/pyshared/z3c/pt/tests/test_doctests.py is in python-z3c.pt 2.2.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | import doctest
import unittest
OPTIONFLAGS = (doctest.ELLIPSIS |
doctest.NORMALIZE_WHITESPACE)
import zope.component.testing
import zope.configuration.xmlconfig
import z3c.pt
def setUp(suite):
zope.component.testing.setUp(suite)
zope.configuration.xmlconfig.XMLConfig('configure.zcml', z3c.pt)()
def test_suite():
filesuites = 'README.txt',
testsuites = 'z3c.pt.expressions', 'z3c.pt.namespaces'
return unittest.TestSuite(
[doctest.DocFileSuite(
filesuite, optionflags=OPTIONFLAGS,
setUp=setUp, tearDown=zope.component.testing.tearDown,
package="z3c.pt") for filesuite in filesuites] + \
[doctest.DocTestSuite(
testsuite, optionflags=OPTIONFLAGS,
setUp=setUp, tearDown=zope.component.testing.tearDown) \
for testsuite in testsuites]
)
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')
|