Added test for the conversion of an OperatingSystem instance to dict
This commit is contained in:
parent
2c2d0e2c44
commit
f05d5b82f1
@ -141,3 +141,10 @@ def test_user_input_combination(config):
|
|||||||
)
|
)
|
||||||
res = all(results)
|
res = all(results)
|
||||||
assert res
|
assert res
|
||||||
|
|
||||||
|
|
||||||
|
def test_operating_system_conversion_to_dict():
|
||||||
|
operating_system = spack.architecture.OperatingSystem('os', '1.0')
|
||||||
|
assert operating_system.to_dict() == {
|
||||||
|
'name': 'os', 'version': '1.0'
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user