Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from nose.tools import eq_
- from celery import Celery
- from celery.task.http import HttpDispatchTask
- celery = Celery()
- def test_http_dispatch():
- celery.conf.CELERY_ALWAYS_EAGER = True
- res = HttpDispatchTask.delay(url='http://echo.jsontest.com/status/success/retval/see', method='POST').get()
- eq_(res, "see")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement