Did I find the right examples for you? yes no

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

src/n/o/nova-HEAD/nova/tests/api/openstack/compute/test_extensions.py   nova(Download)
    def test_list_extensions_json(self):
        app = compute.APIRouter(init_only=('extensions',))
        request = webob.Request.blank("/fake/extensions")
        response = request.get_response(app)
        self.assertEqual(200, response.status_int)
    def test_get_extension_json(self):
        app = compute.APIRouter(init_only=('extensions',))
        request = webob.Request.blank("/fake/extensions/FOXNSOX")
        response = request.get_response(app)
        self.assertEqual(200, response.status_int)
    def test_get_non_existing_extension_json(self):
        app = compute.APIRouter(init_only=('extensions',))
        request = webob.Request.blank("/fake/extensions/4")
        response = request.get_response(app)
        self.assertEqual(404, response.status_int)
 
    def test_list_extensions_xml(self):
        app = compute.APIRouter(init_only=('servers', 'flavors', 'extensions'))
    def test_get_extension_xml(self):
        app = compute.APIRouter(init_only=('servers', 'flavors', 'extensions'))
        request = webob.Request.blank("/fake/extensions/FOXNSOX")
        request.accept = "application/xml"
        response = request.get_response(app)

src/n/o/nova-HEAD/nova/tests/api/openstack/compute/contrib/test_server_diagnostics.py   nova(Download)
            osapi_compute_ext_list=['Server_diagnostics'])
 
        self.router = compute.APIRouter(init_only=('servers', 'diagnostics'))
 
    @mock.patch.object(compute_api.API, 'get_diagnostics',

src/n/o/nova-HEAD/nova/tests/api/openstack/compute/contrib/test_scheduler_hints.py   nova(Download)
                'nova.api.openstack.compute.contrib.select_extensions'],
            osapi_compute_ext_list=['Scheduler_hints'])
        self.app = compute.APIRouter(init_only=('servers',))
 
    def test_create_server_without_hints(self):

src/n/o/nova-HEAD/nova/tests/api/openstack/compute/contrib/test_disk_config.py   nova(Download)
        self.stubs.Set(db, 'instance_create', fake_instance_create)
 
        self.app = compute.APIRouter(init_only=('servers', 'images'))
 
    def _setup_fake_image_service(self):

src/n/o/nova-HEAD/nova/tests/api/openstack/fakes.py   nova(Download)
def wsgi_app(inner_app_v2=None, fake_auth_context=None,
        use_no_auth=False, ext_mgr=None, init_only=None):
    if not inner_app_v2:
        inner_app_v2 = compute.APIRouter(ext_mgr, init_only)
 

src/n/o/nova-gce-HEAD/nova/tests/api/openstack/compute/test_extensions.py   nova-gce(Download)
    def test_list_extensions_json(self):
        app = compute.APIRouter()
        request = webob.Request.blank("/fake/extensions")
        response = request.get_response(app)
        self.assertEqual(200, response.status_int)
    def test_get_extension_json(self):
        app = compute.APIRouter()
        request = webob.Request.blank("/fake/extensions/FOXNSOX")
        response = request.get_response(app)
        self.assertEqual(200, response.status_int)
    def test_get_non_existing_extension_json(self):
        app = compute.APIRouter()
        request = webob.Request.blank("/fake/extensions/4")
        response = request.get_response(app)
        self.assertEqual(404, response.status_int)
 
    def test_list_extensions_xml(self):
        app = compute.APIRouter()
    def test_get_extension_xml(self):
        app = compute.APIRouter()
        request = webob.Request.blank("/fake/extensions/FOXNSOX")
        request.accept = "application/xml"
        response = request.get_response(app)

src/n/o/nova-gce-HEAD/nova/tests/api/openstack/fakes.py   nova-gce(Download)
def wsgi_app(inner_app_v2=None, fake_auth_context=None,
        use_no_auth=False, ext_mgr=None):
    if not inner_app_v2:
        inner_app_v2 = compute.APIRouter(ext_mgr)
 

src/n/o/nova-HEAD/nova/tests/api/openstack/compute/test_servers.py   nova(Download)
    def setUp(self):
        super(ServersAllExtensionsTestCase, self).setUp()
        self.app = compute.APIRouter()
 
    def test_create_missing_server(self):

src/n/o/nova-gce-HEAD/nova/tests/api/openstack/compute/test_servers.py   nova-gce(Download)
    def setUp(self):
        super(ServersAllExtensionsTestCase, self).setUp()
        self.app = nova.api.openstack.compute.APIRouter()
 
    def test_create_missing_server(self):

src/n/o/nova-gce-HEAD/nova/tests/api/openstack/compute/contrib/test_server_diagnostics.py   nova-gce(Download)
        self.stubs.Set(nova.compute.API, 'get', fake_instance_get)
 
        self.router = compute.APIRouter()
 
    def test_get_diagnostics(self):

  1 | 2  Next