# Path: vectortween/Utils.py
# def filter_none(list_of_points):
#     """
#     
#     :param list_of_points: 
#     :return: list_of_points with None's removed
#     """
#     remove_elementnone = filter(lambda p: p is not None, list_of_points)
#     remove_sublistnone = filter(lambda p: not contains_none(p), remove_elementnone)
#     return list(remove_sublistnone)


from vectortween.Utils import filter_none


def test_filternone():
    assert filter_none([]) == []
    assert filter_none([None]) == []
    assert filter_none([1, 2, None]) == [1, 2]
    assert filter_none([1, None, 2]) == [1, 2]

# Path: vectortween/Utils.py
# def filter_none(list_of_points):
#     """
#     
#     :param list_of_points: 
#     :return: list_of_points with None's removed
#     """
#     remove_elementnone = filter(lambda p: p is not None, list_of_points)
#     remove_sublistnone = filter(lambda p: not contains_none(p), remove_elementnone)
#     return list(remove_sublistnone)


# Path: tests/testUtils.py
from vectortween.Utils import filter_none



def test_filternone():
    assert filter_none([]) == []
    assert filter_none([None]) == []
    assert filter_none([1, 2, None]) == [1, 2]
    assert filter_none([1, None, 2]) == [1, 2]

    assert filter_none([None, 1, 2]) == [1, 2]