コード例 #1
0
 def __init__(self, *args, **kargs):
     TestWSGIController.__init__(self, *args, **kargs)
     class TestedWSGIAppController(WSGIAppController):
         def __init__(self):
             def test_app(environ, start_response):
                 if environ['CONTENT_LENGTH'] in (-1, '-1'):
                     del environ['CONTENT_LENGTH']
                 return validator(demo_app)(environ, start_response)
             super(TestedWSGIAppController, self).__init__(test_app)
     self.app = make_app(TestedWSGIAppController)
コード例 #2
0
    def __init__(self, *args, **kargs):
        TestWSGIController.__init__(self, *args, **kargs)

        class TestedWSGIAppController(WSGIAppController):
            def __init__(self):
                def test_app(environ, start_response):
                    if environ['CONTENT_LENGTH'] in (-1, '-1'):
                        del environ['CONTENT_LENGTH']
                    return validator(demo_app)(environ, start_response)

                super(TestedWSGIAppController, self).__init__(test_app)

        self.app = make_app(TestedWSGIAppController)
コード例 #3
0
 def setUp(self):
     TestWSGIController.setUp(self)
     pylons.config.update({
         'pylons.paths': {'root': data_dir},
         'pylons.package': 'tests'})
     self.app = make_app(BasicTGController)
コード例 #4
0
 def setUp(self, *args, **kargs):
     
     TestWSGIController.setUp(self, *args, **kargs)
     self.app = make_app(BasicTGController)
コード例 #5
0
 def __init__(self, *args, **kargs):
     TestWSGIController.__init__(self, *args, **kargs)
     self.app = make_app(NotFoundController)
コード例 #6
0
 def __init__(self, *args, **kargs):
     TestWSGIController.__init__(self, *args, **kargs)
     self.baseenviron = {}
     self.app = make_app(SimpleCachingController, self.baseenviron)
コード例 #7
0
 def __init__(self, *args, **kargs):
     TestWSGIController.__init__(self, *args, **kargs)
     self.baseenviron = {}
     self.app = make_app(DecoratorController, self.baseenviron)
コード例 #8
0
 def __init__(self, *args, **kargs):
     TestWSGIController.__init__(self, *args, **kargs)
     self.app = make_app(BasicTGController)
コード例 #9
0
 def __init__(self, *args, **kargs):
     TestWSGIController.__init__(self, *args, **kargs)
     self.baseenviron = {}
     self.app = make_app(SimpleCachingController, self.baseenviron)
コード例 #10
0
 def __init__(self, *args, **kargs):
     TestWSGIController.__init__(self, *args, **kargs)
     self.app = make_app(EtagController)
コード例 #11
0
 def __init__(self, *args, **kargs):
     TestWSGIController.__init__(self, *args, **kargs)
     self.baseenviron = {}
     self.app = make_app(DecoratorController, self.baseenviron)
コード例 #12
0
 def setUp(self):
     TestWSGIController.setUp(self)
     pylons.config.update({
         'pylons.paths': {'root': data_dir},
         'pylons.package': 'tests'})
     self.app = make_app(BasicTGController)