MCPcopy
hub / github.com/celery/celery / test_setdefault

Method test_setdefault

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

Source from the content-addressed store, hash-verified

62 )
63
64 def test_setdefault(self):
65 self.view.setdefault('both', 36)
66 assert self.view['both'] == 2
67 self.view.setdefault('new', 36)
68 assert self.view['new'] == 36
69
70 def test_get(self):
71 assert self.view.get('both') == 2

Callers

nothing calls this directly

Calls 1

setdefaultMethod · 0.45

Tested by

no test coverage detected