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

Method test_len

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

Source from the content-addressed store, hash-verified

259 assert not bool(self.view)
260
261 def test_len(self):
262 assert len(self.view) == 3
263 self.view.KEY = 33
264 assert len(self.view) == 4
265 self.view.clear()
266 assert len(self.view) == 2
267
268 def test_isa_mutable_mapping(self):
269 from collections.abc import MutableMapping

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected