'Make sure a port is not marked for delete and update.'

def test_port_delete_after_update(self):

    port = {'id': TEST_PORT_ID1}
    self.agent.port_update(context=None, port=port)
    self.agent.port_delete(context=None, port_id=port['id'])
    self.assertEqual(set(), self.agent.updated_ports)
    self.assertEqual(set([port['id']]), self.agent.deleted_ports)
