/usr/lib/python2.7/dist-packages/chameleon/tests/test_doctests.py is in python-chameleon 2.16-4.
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 36 37 38 39 40 | import unittest
import doctest
OPTIONFLAGS = (doctest.ELLIPSIS |
doctest.REPORT_ONLY_FIRST_FAILURE)
class DoctestCase(unittest.TestCase):
def __new__(self, test):
return getattr(self, test)()
@classmethod
def test_tal(cls):
from chameleon import tal
return doctest.DocTestSuite(
tal, optionflags=OPTIONFLAGS)
@classmethod
def test_tales(cls):
from chameleon import tales
return doctest.DocTestSuite(
tales, optionflags=OPTIONFLAGS)
@classmethod
def test_utils(cls):
from chameleon import utils
return doctest.DocTestSuite(
utils, optionflags=OPTIONFLAGS)
@classmethod
def test_exc(cls):
from chameleon import exc
return doctest.DocTestSuite(
exc, optionflags=OPTIONFLAGS)
@classmethod
def test_compiler(cls):
from chameleon import compiler
return doctest.DocTestSuite(
compiler, optionflags=OPTIONFLAGS)
|