'Only one network is available, it\'s external, and the client
is authorized.'

def test_allocate_for_instance_with_externalnet_admin_ctx(self):

    admin_ctx = context.RequestContext('userid', uuids.my_tenant, is_admin=True)
    neutronapi.get_client(mox.IgnoreArg()).AndReturn(self.moxed_client)
    api = self._stub_allocate_for_instance(net_idx=8)
    api.allocate_for_instance(admin_ctx, self.instance, False, None)
