def has_all_attributes(x, attributes):
    """
    Check if the given object has *all* of the given attributes

    Parameters
    ----------
    :param x: object to check
    :param attributes: a list of strings specifying the attributes to check

    Returns
    -------
    :return: True if x contains *all* of the given attributes and False otherwise.
    """
    return all([hasattr(x, a) for a in attributes])