def test_parse_docker_container_status(string_table, parse_type): actual_parsed = docker.parse_docker_container_status(string_table) assert actual_parsed == PARSED assert isinstance(actual_parsed, parse_type)
def test_parse_docker_container_status_legacy_raises(string_table, exception_type): with pytest.raises(exception_type): docker.parse_docker_container_status(string_table)