diff options
| author | velom <[email protected]> | 2022-02-10 16:48:48 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:48 +0300 | 
| commit | 094e560ec880abc6d1e7e01b0c29666385268eb8 (patch) | |
| tree | 3d0ef646b51d2a78ae93a5393f599c70275c67d1 /library/python/func/ut/test_func.py | |
| parent | 4e85f12f6d14e7af54905e3c6a2aed2410fe2553 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/python/func/ut/test_func.py')
| -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 3c4fad1a076..e723d8081c2 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): | 
