Debian Codegraph @

t/unit/utils/test_objects.py

raw
1 from celery.utils.objects import Bunch
2
3
4 class test_Bunch:
5
6 def test(self):
7 x = Bunch(foo='foo', bar=2)
8 assert x.foo == 'foo'
9 assert x.bar == 2