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)
 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)
 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)
Example #8
0
 def __init__(self, *args, **kargs):
     TestWSGIController.__init__(self, *args, **kargs)
     self.app = make_app(BasicTGController)
 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.app = make_app(EtagController)
 def __init__(self, *args, **kargs):
     TestWSGIController.__init__(self, *args, **kargs)
     self.baseenviron = {}
     self.app = make_app(DecoratorController, self.baseenviron)
Example #12
0
 def setUp(self):
     TestWSGIController.setUp(self)
     pylons.config.update({
         'pylons.paths': {'root': data_dir},
         'pylons.package': 'tests'})
     self.app = make_app(BasicTGController)