def test_task_invalid_args(): assert_raises(TypeError, lambda: celery.task('arg1', 'arg2'))
def test_bad_decorator_use(): assert_raises(TypeError, lambda: celery.task(None))