Python wsgiref.util.application_uri() Examples

The following are 13 code examples of wsgiref.util.application_uri(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module wsgiref.util , or try the search function .
Example #1
Source File: test_wsgiref.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def checkAppURI(self,uri,**kw):
        util.setup_testing_defaults(kw)
        self.assertEqual(util.application_uri(kw),uri) 
Example #2
Source File: test_wsgiref.py    From BinderFilter with MIT License 5 votes vote down vote up
def checkAppURI(self,uri,**kw):
        util.setup_testing_defaults(kw)
        self.assertEqual(util.application_uri(kw),uri) 
Example #3
Source File: test_wsgiref.py    From oss-ftp with MIT License 5 votes vote down vote up
def checkAppURI(self,uri,**kw):
        util.setup_testing_defaults(kw)
        self.assertEqual(util.application_uri(kw),uri) 
Example #4
Source File: test_wsgiref.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def checkAppURI(self,uri,**kw):
        util.setup_testing_defaults(kw)
        self.assertEqual(util.application_uri(kw),uri) 
Example #5
Source File: test_wsgiref.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def checkAppURI(self,uri,**kw):
        util.setup_testing_defaults(kw)
        self.assertEqual(util.application_uri(kw),uri) 
Example #6
Source File: test_wsgiref.py    From gcblue with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def checkAppURI(self,uri,**kw):
        util.setup_testing_defaults(kw)
        self.assertEqual(util.application_uri(kw),uri) 
Example #7
Source File: test_http_proxy_to_wsgi.py    From oslo.middleware with Apache License 2.0 5 votes vote down vote up
def setUp(self):
        super(TestHTTPProxyToWSGI, self).setUp()

        @webob.dec.wsgify()
        def fake_app(req):
            return util.application_uri(req.environ)

        self.middleware = http_proxy_to_wsgi.HTTPProxyToWSGI(fake_app)
        self.middleware.oslo_conf.set_override('enable_proxy_headers_parsing',
                                               True,
                                               group='oslo_middleware')
        self.request = webob.Request.blank('/foo/bar', method='POST') 
Example #8
Source File: test_http_proxy_to_wsgi.py    From oslo.middleware with Apache License 2.0 5 votes vote down vote up
def test_backward_compat(self):
        @webob.dec.wsgify()
        def fake_app(req):
            return util.application_uri(req.environ)

        self.middleware = http_proxy_to_wsgi.HTTPProxyToWSGI(fake_app)
        response = self.request.get_response(self.middleware)
        self.assertEqual(b"http://localhost:80/", response.body) 
Example #9
Source File: test_http_proxy_to_wsgi.py    From oslo.middleware with Apache License 2.0 5 votes vote down vote up
def setUp(self):
        super(TestHTTPProxyToWSGIDisabled, self).setUp()

        @webob.dec.wsgify()
        def fake_app(req):
            return util.application_uri(req.environ)

        self.middleware = http_proxy_to_wsgi.HTTPProxyToWSGI(fake_app)
        self.middleware.oslo_conf.set_override('enable_proxy_headers_parsing',
                                               False,
                                               group='oslo_middleware')
        self.request = webob.Request.blank('/foo/bar', method='POST') 
Example #10
Source File: test_wsgiref.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def checkAppURI(self,uri,**kw):
        util.setup_testing_defaults(kw)
        self.assertEqual(util.application_uri(kw),uri) 
Example #11
Source File: test_wsgiref.py    From medicare-demo with Apache License 2.0 5 votes vote down vote up
def checkAppURI(self,uri,**kw):
        util.setup_testing_defaults(kw)
        self.assertEqual(util.application_uri(kw),uri) 
Example #12
Source File: test_wsgiref.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def checkAppURI(self,uri,**kw):
        util.setup_testing_defaults(kw)
        self.assertEqual(util.application_uri(kw),uri) 
Example #13
Source File: test_wsgiref.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def checkAppURI(self,uri,**kw):
        util.setup_testing_defaults(kw)
        self.assertEqual(util.application_uri(kw),uri)