diff options
author | AlexSm <alex@ydb.tech> | 2023-12-27 23:31:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-27 23:31:58 +0100 |
commit | d67bfb4b4b7549081543e87a31bc6cb5c46ac973 (patch) | |
tree | 8674f2f1570877cb653e7ddcff37ba00288de15a /contrib/python/multidict/tests/test_mutable_multidict.py | |
parent | 1f6bef05ed441c3aa2d565ac792b26cded704ac7 (diff) | |
download | ydb-d67bfb4b4b7549081543e87a31bc6cb5c46ac973.tar.gz |
Import libs 4 (#758)
Diffstat (limited to 'contrib/python/multidict/tests/test_mutable_multidict.py')
-rw-r--r-- | contrib/python/multidict/tests/test_mutable_multidict.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/python/multidict/tests/test_mutable_multidict.py b/contrib/python/multidict/tests/test_mutable_multidict.py index 3d4d16ac03..3f66e279ad 100644 --- a/contrib/python/multidict/tests/test_mutable_multidict.py +++ b/contrib/python/multidict/tests/test_mutable_multidict.py @@ -44,6 +44,7 @@ class TestMutableMultiDict: default = object() assert d.getall("some_key", default) is default + assert d.getall(key="some_key", default=default) is default def test_add(self, cls): d = cls() @@ -124,7 +125,7 @@ class TestMutableMultiDict: def test_set_default(self, cls): d = cls([("key", "one"), ("key", "two")], foo="bar") assert "one" == d.setdefault("key", "three") - assert "three" == d.setdefault("otherkey", "three") + assert "three" == d.setdefault(key="otherkey", default="three") assert "otherkey" in d assert "three" == d["otherkey"] @@ -163,6 +164,7 @@ class TestMutableMultiDict: d = cls(other="val") assert "default" == d.pop("key", "default") + assert "default" == d.pop(key="key", default="default") assert "other" in d def test_pop_raises(self, cls): @@ -229,6 +231,7 @@ class TestMutableMultiDict: def test_popall_default(self, cls): d = cls() assert "val" == d.popall("key", "val") + assert "val" == d.popall(key="key", default="val") def test_popall_key_error(self, cls): d = cls() |