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")