#! /usr/bin/python3

class UniqueElements():
    """
    Use a set comprehension to get the unique elements in a list.
    """
    unique_elems = {}

    def __init__(self, alist):
        self.unique_elems = {x for x in alist}

def test_set_comprehension():
    alist = [ 0, 1, 1, 2, 3, 5, 4, 3, 2, 1, 0]
    test_unique = UniqueElements(alist)
    assert len(test_unique.unique_elems) == 6