aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/multidict/tests/test_multidict.py
diff options
context:
space:
mode:
authorAlexSm <alex@ydb.tech>2023-12-27 23:31:58 +0100
committerGitHub <noreply@github.com>2023-12-27 23:31:58 +0100
commitd67bfb4b4b7549081543e87a31bc6cb5c46ac973 (patch)
tree8674f2f1570877cb653e7ddcff37ba00288de15a /contrib/python/multidict/tests/test_multidict.py
parent1f6bef05ed441c3aa2d565ac792b26cded704ac7 (diff)
downloadydb-d67bfb4b4b7549081543e87a31bc6cb5c46ac973.tar.gz
Import libs 4 (#758)
Diffstat (limited to 'contrib/python/multidict/tests/test_multidict.py')
-rw-r--r--contrib/python/multidict/tests/test_multidict.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/python/multidict/tests/test_multidict.py b/contrib/python/multidict/tests/test_multidict.py
index 706fc93e75..e2ad71ee34 100644
--- a/contrib/python/multidict/tests/test_multidict.py
+++ b/contrib/python/multidict/tests/test_multidict.py
@@ -199,6 +199,7 @@ class BaseMultiDictTest:
d.getone("key2")
assert d.getone("key2", "default") == "default"
+ assert d.getone(key="key2", default="default") == "default"
def test__iter__(
self,
@@ -532,6 +533,8 @@ class TestMultiDict(BaseMultiDictTest):
def test_get(self, cls: Type[MultiDict[int]]) -> None:
d = cls([("a", 1), ("a", 2)])
assert d["a"] == 1
+ assert d.get("a") == 1
+ assert d.get("z", 3) == 3
def test_items__repr__(self, cls: Type[MultiDict[str]]) -> None:
d = cls([("key", "value1")], key="value2")