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