ledisdb/client/ledis-py/tests/test_cmd_script.py

25 lines
498 B
Python
Raw Normal View History

2014-09-02 18:36:50 +04:00
# coding: utf-8
# Test Cases for bit commands
import unittest
import sys
sys.path.append('..')
import ledis
from ledis._compat import b
from util import expire_at, expire_at_seconds
l = ledis.Ledis(port=6380)
class TestCmdScript(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
2014-09-03 13:18:58 +04:00
def testEval(self):
assert l.eval("return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}", ["key1", "key2"], "first", "second") == ["key1", "key2", "first", "second"]
2014-09-02 18:36:50 +04:00