File: __init__.py

package info (click to toggle)
python-pecan 1.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,268 kB
  • ctags: 2,123
  • sloc: python: 10,456; makefile: 150; sh: 46
file content (13 lines) | stat: -rw-r--r-- 310 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import sys
import os
if sys.version_info < (2, 7):
    from unittest2 import TestCase  # pragma: nocover
else:
    from unittest import TestCase  # pragma: nocover
from pecan.testing import reset_global_config


class PecanTestCase(TestCase):

    def setUp(self):
        self.addCleanup(reset_global_config)