MCPcopy
hub / github.com/celery/celery / test_getattr__setattr

Method test_getattr__setattr

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

Source from the content-addressed store, hash-verified

328class test_AttributeDict:
329
330 def test_getattr__setattr(self):
331 x = AttributeDict({'foo': 'bar'})
332 assert x['foo'] == 'bar'
333 with pytest.raises(AttributeError):
334 x.bar
335 x.bar = 'foo'
336 assert x['bar'] == 'foo'
337
338
339class test_Messagebuffer:

Callers

nothing calls this directly

Calls 2

AttributeDictClass · 0.90
raisesMethod · 0.45

Tested by

no test coverage detected