diff options
Diffstat (limited to 'tests/test_helpers.py')
-rw-r--r-- | tests/test_helpers.py | 8 |
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!"' |