8 lines
287 B
Python
8 lines
287 B
Python
from l4d2host.status import map_active_state
|
|
|
|
|
|
def test_status_mapping() -> None:
|
|
assert map_active_state("active") == "running"
|
|
assert map_active_state("inactive") == "stopped"
|
|
assert map_active_state("failed") == "stopped"
|
|
assert map_active_state("weird") == "unknown"
|