/usr/share/pyshared/zope/site/tests/test_folder.py is in python-zope.site 3.9.2-0ubuntu3.
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 | from unittest import TestSuite, makeSuite
import doctest
from zope.site.folder import Folder
from zope.site.testing import siteSetUp, siteTearDown
from zope.site.tests.test_site import BaseTestSiteManagerContainer
def setUp(test=None):
siteSetUp()
def tearDown(test=None):
siteTearDown()
class FolderTest(BaseTestSiteManagerContainer):
def makeTestObject(self):
return Folder()
def test_suite():
flags = doctest.ELLIPSIS|doctest.NORMALIZE_WHITESPACE
return TestSuite((
makeSuite(FolderTest),
doctest.DocTestSuite('zope.site.folder',
setUp=setUp, tearDown=tearDown),
doctest.DocFileSuite("folder.txt",
setUp=setUp, tearDown=tearDown,
optionflags=flags),
))
|