Ejemplo n.º 1
0
def test_clean_listofcomponents_tuples():
    """py.test for _clean_listofcomponents_tuples"""
    data = (
        ([(1, 2), (2, 3)], [(1, 2, None), (2, 3, None)]),  # lst, clst
        ([(1, 2, None), (2, 3)], [(1, 2, None), (2, 3, None)]),  # lst, clst
        ([(1, 2, 'stuff'), (2, 3)], [(1, 2, 'stuff'), (2, 3, None)]),  # lst, clst
    )
    for lst, clst in data:
        result = hvacbuilder._clean_listofcomponents_tuples(lst)
        assert result == clst
Ejemplo n.º 2
0
def test_clean_listofcomponents_tuples():
    """py.test for _clean_listofcomponents_tuples"""
    data = (
        ([(1, 2), (2, 3)], [(1, 2, None), (2, 3, None)]),  # lst, clst
        ([(1, 2, None), (2, 3)], [(1, 2, None), (2, 3, None)]),  # lst, clst
        ([(1, 2, 'stuff'), (2, 3)], [(1, 2, 'stuff'), (2, 3, None)]),  # lst, clst
    )
    for lst, clst in data:
        result = hvacbuilder._clean_listofcomponents_tuples(lst)
        assert result == clst