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

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

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)
 
class TestTGController(TestWSGIController):
    def setUp(self):
        TestWSGIController.setUp(self)
        tg.config.update({
            'paths': {'root': data_dir},

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)
 
class TestNotFoundController(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(NotFoundController)
class TestNotFoundWithIndexController(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(NotFoundWithIndexController)
class TestWSGIAppController(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        class TestedWSGIAppController(WSGIAppController):
class TestWSGIAppControllerNotHTML(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        class TestedWSGIAppController(WSGIAppController):

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)
 
class TestTGControllerRoot(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(BasicTGControllerNoDefault)
class TestTGController(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(BasicTGController)
class TestRestController(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(BasicTGController)

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

src/t/g/tg2-HEAD/tests/test_configuration.py   tg2(Download)
import tg.i18n
from tg import TGController, expose, response, request, abort
from tests.base import TestWSGIController, make_app, setup_session_dir, teardown_session_dir, create_request
from webtest import TestApp
from tg.renderers.base import RendererFactory

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():
class TestSimpleCaching(TestWSGIController):
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.baseenviron = {}
        self.app = make_app(SimpleCachingController, self.baseenviron)
class TestDecoratorCaching(TestWSGIController):
 
    """ Test that the decorators function. """
 
    def __init__(self, *args, **kargs):
class TestEtagCaching(TestWSGIController):
 
    """ A simple mechanism is provided to set the etag header for returned results. """
 
    def __init__(self, *args, **kargs):
class TestSessionTouch(TestWSGIController):
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(SessionTouchController)
 

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)
 
class TestTGController(TestWSGIController):
    def setUp(self):
        TestWSGIController.setUp(self)
        tg.config.update({
            'paths': {'root': data_dir},

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)
 
class TestNotFoundController(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(NotFoundController)
class TestNotFoundWithIndexController(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(NotFoundWithIndexController)
class TestWSGIAppController(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        class TestedWSGIAppController(WSGIAppController):
class TestWSGIAppControllerNotHTML(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        class TestedWSGIAppController(WSGIAppController):

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)
 
class TestTGControllerRoot(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(BasicTGControllerNoDefault)
class TestTGController(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(BasicTGController)
class TestRestController(TestWSGIController):
 
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)
        self.app = make_app(BasicTGController)

  1 | 2  Next