MCPcopy Create free account
hub / github.com/MongoEngine/mongoengine / test_items

Method test_items

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

Source from the content-addressed store, hash-verified

443 assert d.get("b", "bla") == "bla"
444
445 def test_items(self):
446 d = self.dtype(a=1)
447 assert d.items() == [("a", 1)]
448 d = self.dtype(a=1, b=2)
449 assert d.items() == [("a", 1), ("b", 2)]
450
451 def test_mappings_protocol(self):
452 d = self.dtype(a=1, b=2)

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected