/usr/lib/python2.7/dist-packages/pecan/tests/__init__.py is in python-pecan 1.0.2-2ubuntu1.
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 | import sys
import os
if sys.version_info < (2, 7):
from unittest2 import TestCase # pragma: nocover
else:
from unittest import TestCase # pragma: nocover
class PecanTestCase(TestCase):
def setUp(self):
self.addCleanup(self._reset_global_config)
def _reset_global_config(self):
from pecan import configuration
configuration.set_config(
dict(configuration.initconf()),
overwrite=True
)
os.environ.pop('PECAN_CONFIG', None)
|