Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(43)  |  Call(29)  |  Derive(0)  |  Import(14)

src/t/g/tg2-HEAD/tests/test_caching.py   tg2(Download)
from tg.controllers.util import etag_cache
from tg import cache
from tests.base import TestWSGIController, make_app, setup_session_dir, teardown_session_dir
 
def setup():
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.baseenviron = {}
        self.app = make_app(SimpleCachingController, self.baseenviron)
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.baseenviron = {}
        self.app = make_app(DecoratorController, self.baseenviron)
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(EtagController)
 
    def test_etags(self):
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(SessionTouchController)
 
    def test_prova(self):

src/t/u/TurboGears2-2.3.2/tests/test_caching.py   TurboGears2(Download)
from tg.controllers.util import etag_cache
from tg import cache
from tests.base import TestWSGIController, make_app, setup_session_dir, teardown_session_dir
 
def setup():
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.baseenviron = {}
        self.app = make_app(SimpleCachingController, self.baseenviron)
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.baseenviron = {}
        self.app = make_app(DecoratorController, self.baseenviron)
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(EtagController)
 
    def test_etags(self):
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(SessionTouchController)
 
    def test_prova(self):

src/t/u/TurboGears2-2.3.2/tests/test_tg_controller_dispatch.py   TurboGears2(Download)
from tg.util import no_warn
 
from tests.base import (
    TestWSGIController, make_app, setup_session_dir, teardown_session_dir)
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(NotFoundController)
 
    def test_not_found(self):
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(NotFoundWithIndexController)
 
    def test_not_found(self):
                    return validator(demo_app)(environ, start_response)
                super(TestedWSGIAppController, self).__init__(test_app)
        self.app = make_app(TestedWSGIAppController)
 
    def test_valid_wsgi(self):
                    return [b'HELLO']
                super(TestedWSGIAppController, self).__init__(test_app)
        self.app = make_app(TestedWSGIAppController)
 
    def test_right_wsgi_headers(self):

src/t/g/tg2-HEAD/tests/test_tg_controller_dispatch.py   tg2(Download)
from tg.util import no_warn
 
from tests.base import (
    TestWSGIController, make_app, setup_session_dir, teardown_session_dir)
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(NotFoundController)
 
    def test_not_found(self):
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(NotFoundWithIndexController)
 
    def test_not_found(self):
                    return validator(demo_app)(environ, start_response)
                super(TestedWSGIAppController, self).__init__(test_app)
        self.app = make_app(TestedWSGIAppController)
 
    def test_valid_wsgi(self):
                    return [b'HELLO']
                super(TestedWSGIAppController, self).__init__(test_app)
        self.app = make_app(TestedWSGIAppController)
 
    def test_right_wsgi_headers(self):

src/t/u/TurboGears2-2.3.2/tests/test_rest_controller_dispatch.py   TurboGears2(Download)
from tg.util import no_warn
 
from tests.base import (
    TestWSGIController, make_app, setup_session_dir, teardown_session_dir)
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(BasicTGControllerNoDefault)
 
    def test_root_default_dispatch(self):
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(BasicTGController)
 
    def test_lookup(self):
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(BasicTGController)
 
    def test_post(self):

src/t/g/tg2-HEAD/tests/test_rest_controller_dispatch.py   tg2(Download)
from tg.util import no_warn
 
from tests.base import (
    TestWSGIController, make_app, setup_session_dir, teardown_session_dir)
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(BasicTGControllerNoDefault)
 
    def test_root_default_dispatch(self):
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(BasicTGController)
 
    def test_lookup(self):
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(BasicTGController)
 
    def test_post(self):

src/t/u/TurboGears2-2.3.2/tests/test_validation.py   TurboGears2(Download)
from tg.controllers import TGController, DecoratedController
from tg.decorators import expose, validate, before_render, before_call
from tests.base import (TestWSGIController, data_dir,
    make_app, setup_session_dir, teardown_session_dir)
 
        tg.config.update({'dedicated_controller_wrappers': wrappers_conf})
 
        self.app = make_app(BasicTGController)
 
    def test_basic_validation_and_jsonification(self):

src/t/g/tg2-HEAD/tests/test_validation.py   tg2(Download)
from tg.controllers import TGController, DecoratedController
from tg.decorators import expose, validate, before_render, before_call, Decoration
from tests.base import (TestWSGIController, data_dir,
    make_app, setup_session_dir, teardown_session_dir)
 
        })
 
        self.app = make_app(BasicTGController)
 
    def test_basic_validation_and_jsonification(self):

src/t/g/tg2-HEAD/tests/test_render.py   tg2(Download)
import tg
from tg.render import MissingRendererError
from tests.base import TestWSGIController, make_app, setup_session_dir, teardown_session_dir, create_request
 
from tg.configuration import AppConfig

src/t/g/tg2-HEAD/tests/test_controllers.py   tg2(Download)
from tg.exceptions import HTTPFound
from nose.tools import eq_
from tests.base import TestWSGIController, make_app, setup_session_dir, teardown_session_dir, create_request
from tg.util import no_warn
from tg._compat import u_, string_type

  1 | 2  Next