def member_of(sub_list, collection):
    """
    Tests that all the elements of the sublist are present in the collection

    :param list collection: The tested values
    :param list sub_list: The member values
    :rtype: bool
    """
    return all(x in collection for x in sub_list)