'Binding information is provided on update. Don\'t allocate.'

def test_port_update_deferred_allocation_no_ipam(self):

    with self.network() as network:
        with self.subnet(network=network):
            pass
    response = self._create_port(self.fmt, net_id=network['network']['id'], tenant_id=network['network']['tenant_id'], fixed_ips=[])
    port = self.deserialize(self.fmt, response)
    ips = port['port']['fixed_ips']
    self.assertEqual(0, len(ips))
    data = {'port': {portbindings.HOST_ID: 'fakehost'}}
    port_id = port['port']['id']
    port_req = self.new_update_request('ports', data, port_id)
    response = port_req.get_response(self.api)
    self.assertEqual(webob.exc.HTTPOk.code, response.status_int)
    res = self.deserialize(self.fmt, response)
    self.assertEqual(0, len(res['port']['fixed_ips']))
