# Path: doorman/tasks.py
# @celery.task()
# def example_task(one, two):
#     print('Adding {0} and {1}'.format(one, two))
#     return one + two


from doorman.tasks import example_task
# -*- coding: utf-8 -*-


class TestCelery:
    def test_celery_simple(self):
        res = example_task.delay(1, 2)

# Path: doorman/tasks.py
# @celery.task()
# def example_task(one, two):
#     print('Adding {0} and {1}'.format(one, two))
#     return one + two


# Path: tests/test_celery.py
from doorman.tasks import example_task

# -*- coding: utf-8 -*-


class TestCelery:
    def test_celery_simple(self):
        res = example_task.delay(1, 2)

        assert res.get() == 3