Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/d/o/dodai-compute-HEAD/nova/tests/api/openstack/test_extensions.py   dodai-compute(Download)
    def test_list_extensions_json(self):
        app = openstack.APIRouterV11()
        ext_midware = extensions.ExtensionMiddleware(app)
        request = webob.Request.blank("/123/extensions")
        response = request.get_response(ext_midware)
    def test_get_extension_json(self):
        app = openstack.APIRouterV11()
        ext_midware = extensions.ExtensionMiddleware(app)
        request = webob.Request.blank("/123/extensions/FOXNSOX")
        response = request.get_response(ext_midware)
    def test_get_non_existing_extension_json(self):
        app = openstack.APIRouterV11()
        ext_midware = extensions.ExtensionMiddleware(app)
        request = webob.Request.blank("/123/extensions/4")
        response = request.get_response(ext_midware)
        self.assertEqual(404, response.status_int)
 
    def test_list_extensions_xml(self):
        app = openstack.APIRouterV11()
    def test_get_extension_xml(self):
        app = openstack.APIRouterV11()
        ext_midware = extensions.ExtensionMiddleware(app)
        request = webob.Request.blank("/123/extensions/FOXNSOX")
        request.accept = "application/xml"

src/d/o/dodai-compute-HEAD/nova/tests/api/openstack/fakes.py   dodai-compute(Download)
        inner_app10 = openstack.APIRouterV10()
    if not inner_app11:
        inner_app11 = openstack.APIRouterV11()
 
    if fake_auth: