'Network update arrives later than port_delete.
But the main agent loop still didn\'t process the ports,
so we ensure the port is not marked for update.'

def test_network_update_outoforder(self):

    network = {'id': TEST_NETWORK_ID1}
    port = {'id': TEST_PORT_ID1, 'network_id': network['id']}
    self.agent._update_port_network(port['id'], port['network_id'])
    self.agent.port_delete(context=None, port_id=port['id'])
    self.agent.network_update(context=None, network=network)
    self.assertEqual(set(), self.agent.updated_ports)
