UT: Add test_operating_system_default_value()

This commit is contained in:
Mike Salvatore 2022-08-29 20:23:56 -04:00
parent 40601b955c
commit 3e2244cd62
1 changed files with 9 additions and 0 deletions

View File

@ -164,6 +164,15 @@ def test_operating_system_set_invalid_value():
m.operating_system = "MacOS"
def test_operating_system_default_value():
missing_operating_system_dict = MACHINE_OBJECT_DICT.copy()
del missing_operating_system_dict["operating_system"]
m = Machine(**missing_operating_system_dict)
assert m.operating_system is None
def test_set_operating_system_version():
m = Machine(**MACHINE_OBJECT_DICT)