aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/func/ut
diff options
context:
space:
mode:
authorvelom <velom@yandex-team.ru>2022-02-10 16:48:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:48 +0300
commit094e560ec880abc6d1e7e01b0c29666385268eb8 (patch)
tree3d0ef646b51d2a78ae93a5393f599c70275c67d1 /library/python/func/ut
parent4e85f12f6d14e7af54905e3c6a2aed2410fe2553 (diff)
downloadydb-094e560ec880abc6d1e7e01b0c29666385268eb8.tar.gz
Restoring authorship annotation for <velom@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/python/func/ut')
-rw-r--r--library/python/func/ut/test_func.py16
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 3c4fad1a07..e723d8081c 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):