'Network update marks port for update.'

def test_network_update(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.network_update(context=None, network=network)
    self.assertEqual(set([port['id']]), self.agent.updated_ports)
