podman-compose/pytests/test_is_list_of_str.py
Sergei Biriukov 9011e9faa1 add tests, dry up code, use shlex.split instead of str.split
Signed-off-by: Sergei Biriukov <svbiriukov@gmail.com>
2023-05-06 10:42:44 +03:00

11 lines
295 B
Python

from podman_compose import is_list_of_str
def test_is_list_of_str():
assert is_list_of_str(["foo", "bar"])
assert not is_list_of_str(["foo", 1])
assert not is_list_of_str("foo")
assert not is_list_of_str([])
assert not is_list_of_str(1)
assert not is_list_of_str(None)