Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def get_cool_unittest():
    if platform.python_version() < '2.7':
        try:
            return __import__('unittest2')
        except ImportError:
            raise
    else:
        return __import__('unittest')
        


src/w/s/wsgitestcase-0.1/tests.py   wsgitestcase(Download)
 
from wsgitestcase import WsgiTestCase, WsgiThread
from wsgitestcase import get_cool_unittest
from werkzeug.wrappers import Request, Response
from wsgitestcase import all_404
from wsgitestcase import get_static_files_app
 
 
unittest = get_cool_unittest()