def test_two_parallel(self): assert set(map(str, Bridge._all_bridges_from_components([ Component.from_string('0/1'), Component.from_string('0/2')]))) == \ {'0/1', '0/2'}
def test_single(self): assert set(map(str, Bridge._all_bridges_from_components([ Component.from_string('0/1')]))) == {'0/1'}
def test_single_incompatible(self): assert set(map(str, Bridge._all_bridges_from_components([ Component.from_string('1/1')]))) == set()
def test_empty(self): assert list(Bridge._all_bridges_from_components([])) == []