diff options
author | velom <velom@yandex-team.ru> | 2022-02-10 16:48:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:48 +0300 |
commit | 16695af126b81715716fd9708b2c9c82e8a60c9c (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/python/func/ut | |
parent | 094e560ec880abc6d1e7e01b0c29666385268eb8 (diff) | |
download | ydb-16695af126b81715716fd9708b2c9c82e8a60c9c.tar.gz |
Restoring authorship annotation for <velom@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/python/func/ut')
-rw-r--r-- | library/python/func/ut/test_func.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/python/func/ut/test_func.py b/library/python/func/ut/test_func.py index e723d8081c..3c4fad1a07 100644 --- a/library/python/func/ut/test_func.py +++ b/library/python/func/ut/test_func.py @@ -124,14 +124,14 @@ def test_split(): assert func.split([1, 0, 1], lambda x: x) == ([1, 1], [0]) -def test_flatten_dict(): - assert func.flatten_dict({"a": 1, "b": 2}) == {"a": 1, "b": 2} - assert func.flatten_dict({"a": 1}) == {"a": 1} - assert func.flatten_dict({}) == {} - assert func.flatten_dict({"a": 1, "b": {"c": {"d": 2}}}) == {"a": 1, "b.c.d": 2} - assert func.flatten_dict({"a": 1, "b": {"c": {"d": 2}}}, separator="/") == {"a": 1, "b/c/d": 2} - - +def test_flatten_dict(): + assert func.flatten_dict({"a": 1, "b": 2}) == {"a": 1, "b": 2} + assert func.flatten_dict({"a": 1}) == {"a": 1} + assert func.flatten_dict({}) == {} + assert func.flatten_dict({"a": 1, "b": {"c": {"d": 2}}}) == {"a": 1, "b.c.d": 2} + assert func.flatten_dict({"a": 1, "b": {"c": {"d": 2}}}, separator="/") == {"a": 1, "b/c/d": 2} + + def test_memoize_thread_local(): class Counter(object): def __init__(self, s): |