test_objects.py 230 B

1234567891011
  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