MCPcopy
hub / github.com/pallets/werkzeug / test_iter_interfaces

Method test_iter_interfaces

tests/test_datastructures.py:417–431  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

415 assert md["u"] == -1
416
417 def test_iter_interfaces(self):
418 mapping = [
419 ("a", 1),
420 ("b", 2),
421 ("a", 2),
422 ("d", 3),
423 ("a", 1),
424 ("a", 3),
425 ("d", 4),
426 ("c", 3),
427 ]
428 md = self.storage_class(mapping)
429 assert list(zip(md.keys(), md.listvalues())) == list(md.lists())
430 assert list(zip(md, md.listvalues())) == list(md.lists())
431 assert list(zip(md.keys(), md.listvalues())) == list(md.lists())
432
433 def test_getitem_raise_badrequestkeyerror_for_empty_list_value(self):
434 mapping = [("a", "b"), ("a", "c")]

Callers

nothing calls this directly

Calls 4

listFunction · 0.50
keysMethod · 0.45
listvaluesMethod · 0.45
listsMethod · 0.45

Tested by

no test coverage detected