'Binding information is provided, subnet created after port'

def test_port_update_deferred_allocation_no_segments(self):

    with self.network() as network:
        pass
    port = self._create_deferred_ip_port(network)
    with self.subnet(network=network):
        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']))
