Files
Sheerka-Old/tests/test_utils.py
T
2019-10-21 16:13:56 +02:00

13 lines
333 B
Python

import core.utils
import pytest
@pytest.mark.parametrize("lst, as_string", [
(None, "",),
([], ""),
(["hello", "world"], "hello world"),
(["hello world", "my friend"], '"hello world" "my friend"')
])
def test_i_can_create_string_from_a_list(lst, as_string):
assert core.utils.sysarg_to_string(lst) == as_string