def METHOD_NAME(self) -> None:
    """Test _validate_supported_codec raise ValueError."""
    with pytest.raises(ValidationError) as excinfo:
        ArgsDataModel(codec="foo")
    assert excinfo.value.errors() == [
        {
            "loc": ("codec",),
            "msg": f"Codec 'foo' must be one of: {', '.join(CODECS)}",
            "type": "value_error",
        }
    ]