diff options
author | Chayim I. Kirshen <c@kirshen.com> | 2021-11-10 11:48:09 +0200 |
---|---|---|
committer | Chayim I. Kirshen <c@kirshen.com> | 2021-11-10 11:48:09 +0200 |
commit | 008f8f80609cbe4293d0419c96daa1f21f2c0281 (patch) | |
tree | 1bfe0071f4da21893bec18fe98208f175d8122e9 /tests/test_helpers.py | |
parent | 606e73467d7d9f154741123b75df00dc84fea7ab (diff) | |
download | redis-py-ck-helpers.tar.gz |
flake8ck-helpers
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!"' |