MCPcopy Create free account
hub / github.com/celery/celery / test_get

Method test_get

t/unit/utils/test_collections.py:139–142  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 assert self.view['new'] == 36
138
139 def test_get(self):
140 assert self.view.get('both') == 2
141 sp = object()
142 assert self.view.get('nonexisting', sp) is sp
143
144 def test_getitem_respects_map_order(self):
145 # Changes are searched before defaults.

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected