# Path: aredis/exceptions.py
# class NoScriptError(ResponseError):
#     pass
# 
# class ResponseError(RedisError):
#     pass
# 
# Path: aredis/utils.py
# def b(x):
#     return x.encode('latin-1') if not isinstance(x, bytes) else x


import pytest
from aredis.exceptions import (NoScriptError,
                               ResponseError)
from aredis.utils import b
from __future__ import with_statement



multiply_script = """
local value = redis.call('GET', KEYS[1])
value = tonumber(value)
return value * ARGV[1]"""

msgpack_hello_script = """

# Path: aredis/exceptions.py
# class NoScriptError(ResponseError):
#     pass
# 
# class ResponseError(RedisError):
#     pass
# 
# Path: aredis/utils.py
# def b(x):
#     return x.encode('latin-1') if not isinstance(x, bytes) else x


# Path: tests/client/test_scripting.py
import pytest
from aredis.exceptions import (NoScriptError,
                               ResponseError)
from aredis.utils import b

from __future__ import with_statement



multiply_script = """
local value = redis.call('GET', KEYS[1])
value = tonumber(value)
return value * ARGV[1]"""

msgpack_hello_script = """

local message = cmsgpack.unpack(ARGV[1])