/usr/share/pyshared/z3c/autoinclude/tests/TestDirective/testdirective/zcml.py is in python-z3c.autoinclude 0.3.5-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 | from zope.interface import Interface
from zope.schema import TextLine
test_log = []
def clear_test_log():
while test_log:
test_log.pop()
class ITestDirective(Interface):
"""Auto-include any ZCML in the dependencies of this package."""
test_string = TextLine(
title=u"Test package string",
description=u"""
Append a value to a global variable to inspect later
""",
required=True,
)
def testDirective(_context, test_string):
test_log.append(test_string)
|