summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChayim I. Kirshen <c@kirshen.com>2021-11-10 11:48:09 +0200
committerChayim I. Kirshen <c@kirshen.com>2021-11-10 11:48:09 +0200
commit008f8f80609cbe4293d0419c96daa1f21f2c0281 (patch)
tree1bfe0071f4da21893bec18fe98208f175d8122e9
parent606e73467d7d9f154741123b75df00dc84fea7ab (diff)
downloadredis-py-ck-helpers.tar.gz
-rw-r--r--tests/test_helpers.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_helpers.py b/tests/test_helpers.py
index 1d2f892..467e00c 100644
--- a/tests/test_helpers.py
+++ b/tests/test_helpers.py
@@ -8,16 +8,18 @@ from redis.commands.helpers import (
random_string
)
+
def test_list_or_args():
k = ["hello, world"]
a = ["some", "argument", "list"]
assert list_or_args(k, a) == k+a
-
+
for i in ["banana", b"banana"]:
assert list_or_args(i, a) == [i] + a
+
def test_parse_to_list():
- r = ["hello", b"my name", "45", "555.55", "is simon!", None]
+ r = ["hello", b"my name", "45", "555.55", "is simon!", None]
assert parse_to_list(r) == \
["hello", "my name", 45, 555.55, "is simon!", None]
@@ -44,4 +46,4 @@ def test_random_string():
def test_quote_string():
assert quote_string("hello world!") == '"hello world!"'
assert quote_string('') == '""'
- assert quote_string('hello world!') == '"hello world!"' \ No newline at end of file
+ assert quote_string('hello world!') == '"hello world!"'