15 lines
410 B
Python
15 lines
410 B
Python
|
|
from devstack import distro
|
|
|
|
|
|
def test_component_dependencies():
|
|
d = distro.Distro('fake', 'ignore', 'apt', {},
|
|
{'a': {'dependencies': ['b'],
|
|
},
|
|
'b': {},
|
|
})
|
|
actual = d.resolve_component_dependencies(['a'])
|
|
assert actual == {'a': set(['b']),
|
|
'b': set(),
|
|
}
|