test_objects.py 229 B

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