Exemple #1
0
def test__clean_listofcomponents():
    """py.test for _clean_listofcomponents"""
    data = (
        ([1, 2], [(1, None), (2, None)]),  # lst, clst
        ([(1, None), 2], [(1, None), (2, None)]),  # lst, clst
        ([(1, 'stuff'), 2], [(1, 'stuff'), (2, None)]),  # lst, clst
    )
    for lst, clst in data:
        result = hvacbuilder._clean_listofcomponents(lst)
        assert result == clst
Exemple #2
0
def test__clean_listofcomponents():
    """py.test for _clean_listofcomponents"""
    data = (
        ([1, 2], [(1, None), (2, None)]), # lst, clst
        ([(1, None), 2], [(1, None), (2, None)]), # lst, clst
        ([(1, 'stuff'), 2], [(1, 'stuff'), (2, None)]), # lst, clst
    )
    for lst, clst in data:
        result = hvacbuilder._clean_listofcomponents(lst)
        assert result == clst