MCPcopy
hub / github.com/celery/celery / test_len

Method test_len

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

Source from the content-addressed store, hash-verified

122 assert not bool(self.view)
123
124 def test_len(self):
125 assert len(self.view) == 3
126 self.view.KEY = 33
127 assert len(self.view) == 4
128 self.view.clear()
129 assert len(self.view) == 2
130
131 def test_isa_mutable_mapping(self):
132 from collections.abc import MutableMapping

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected