Did I find the right examples for you? yes no

All Samples(9)  |  Call(5)  |  Derive(4)  |  Import(0)

src/n/o/nova-HEAD/nova/tests/api/openstack/compute/plugins/v3/test_access_ips.py   nova(Download)
    def _test_with_access_ips(self, func, kwargs={'id': 'fake'}):
        req = wsgi.Request({'nova.context':
                    fakes.FakeRequestContext('fake_user', 'fake',
                                             is_admin=True)})
        instance = {'uuid': 'fake',
    def _test_without_access_ips(self, func, kwargs={'id': 'fake'}):
        req = wsgi.Request({'nova.context':
                    fakes.FakeRequestContext('fake_user', 'fake',
                                             is_admin=True)})
        instance = {'uuid': 'fake',
    def test_create_with_reservation_id(self):
        req = wsgi.Request({'nova.context':
                    fakes.FakeRequestContext('fake_user', 'fake',
                                             is_admin=True)})
        expected_res = {'servers_reservation': {'reservation_id': 'test'}}
    def test_detail(self):
        req = wsgi.Request({'nova.context':
                    fakes.FakeRequestContext('fake_user', 'fake',
                                             is_admin=True)})
        instance1 = {'uuid': 'fake1',
    def test_detail_without_access_ips(self):
        req = wsgi.Request({'nova.context':
                    fakes.FakeRequestContext('fake_user', 'fake',
                                             is_admin=True)})
        instance1 = {'uuid': 'fake1',

src/n/o/nova-HEAD/nova/tests/api/openstack/fakes.py   nova(Download)
class HTTPRequest(os_wsgi.Request):
 
    @staticmethod
    def blank(*args, **kwargs):
        kwargs['base_url'] = 'http://localhost/v2'
class HTTPRequestV3(os_wsgi.Request):
 
    @staticmethod
    def blank(*args, **kwargs):
        kwargs['base_url'] = 'http://localhost/v3'

src/n/o/nova-gce-HEAD/nova/tests/api/openstack/fakes.py   nova-gce(Download)
class HTTPRequest(os_wsgi.Request):
 
    @classmethod
    def blank(cls, *args, **kwargs):
        kwargs['base_url'] = 'http://localhost/v2'

src/n/o/nova-gce-HEAD/nova/tests/api/gce/fakes.py   nova-gce(Download)
class HTTPRequest(os_wsgi.Request):
 
    @classmethod
    def blank(cls, *args, **kwargs):
        kwargs['base_url'] = 'http://localhost/compute/v1beta12'