def METHOD_NAME(self, retrieve_list, exception, match):
    """Test the :meth:`aiida.orm.nodes.process.calculation.calcjob.CalcJobNode.set_retrieve_list`."""
    node = CalcJobNode()
    if exception:
        with pytest.raises(exception, match=match):
            node.set_retrieve_list(retrieve_list)
    else:
        node.set_retrieve_list(retrieve_list)
        assert node.get_retrieve_list() == retrieve_list