def METHOD_NAME():
    """
    Test known serializer is returned or exception is raised
    if unknown serializer
    """
    for serializers in ("json", "yaml", "msgpack"):
        assert script._get_serializer(serializers)
    with pytest.raises(CommandExecutionError):
        script._get_serializer("bad")