'Binding information is provided, subnet created after port'

def test_port_update_deferred_allocation_no_segments_manual_alloc(self):

    with self.network() as network:
        pass
    port = self._create_deferred_ip_port(network)
    with self.subnet(network=network) as subnet:
        data = {'port': {portbindings.HOST_ID: 'fakehost', 'fixed_ips': [{'subnet_id': subnet['subnet']['id']}]}}
        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)
    self._assert_one_ip_in_subnet(response, subnet['subnet']['cidr'])
    port_req = self.new_show_request('ports', port_id)
    response = port_req.get_response(self.api)
    self.assertEqual(webob.exc.HTTPOk.code, response.status_int)
    self._assert_one_ip_in_subnet(response, subnet['subnet']['cidr'])
