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)
    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)
 def setUp(self, *args, **kargs):
     
     TestWSGIController.setUp(self, *args, **kargs)
     self.app = make_app(BasicTGController)
 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)