#!/usr/bin/python
from celery.task import task
import time

@task
def add(x, y):
    print "Got add()"
    return x + y

@task
def add_delayed(x, y):
    print "Got add_delayed()"
    time.sleep(1)
    print "Woke up from add_delayed()"
    return x+y

@task
def fail():
    print "Got fail()"
    return fffffff

@task
def delayed():
    print "Got delayed()"
    time.sleep(2)
    print "Woke up from delayed()"
    return 'Woke up'

@task
def get_fibonacci():
    return [1,1,2,3,5,8,13,21,34,55,89,144]

@@ -1,22 +1,4 @@
-#!/usr/bin/python%0A
 from
@@ -35,16 +35,17 @@
 t time%0A%0A
+%0A
 @task%0Ade
@@ -58,33 +58,33 @@
 x, y):%0A    print
- 
+(
 %22Got add()%22%0A    
@@ -74,24 +74,25 @@
 (%22Got add()%22
+)
 %0A    return 
@@ -98,16 +98,17 @@
  x + y%0A%0A
+%0A
 @task%0Ade
@@ -133,25 +133,25 @@
 ):%0A    print
- 
+(
 %22Got add_del
@@ -149,32 +149,33 @@
 t add_delayed()%22
+)
 %0A    time.sleep(
@@ -178,33 +178,33 @@
 eep(1)%0A    print
- 
+(
 %22Woke up from ad
@@ -207,32 +207,33 @@
 m add_delayed()%22
+)
 %0A    return x+y%0A
@@ -233,16 +233,17 @@
 rn x+y%0A%0A
+%0A
 @task%0Ade
@@ -257,25 +257,25 @@
 ):%0A    print
- 
+(
 %22Got fail()%22
@@ -278,27 +278,30 @@
 l()%22
+)
 %0A    r
-eturn fffffff
+aise Exception%0A
 %0A%0A@t
@@ -328,17 +328,17 @@
    print
- 
+(
 %22Got del
@@ -340,24 +340,25 @@
 t delayed()%22
+)
 %0A    time.sl
@@ -373,17 +373,17 @@
    print
- 
+(
 %22Woke up
@@ -398,16 +398,17 @@
 layed()%22
+)
 %0A    ret
@@ -422,16 +422,17 @@
 ke up'%0A%0A
+%0A
 @task%0Ade
@@ -468,33 +468,44 @@
  %5B1,
+ 
 1,
+ 
 2,
+ 
 3,
+ 
 5,
+ 
 8,
+ 
 13,
+ 
 21,
+ 
 34,
+ 
 55,
+ 
 89,
+ 
 144%5D

Make testscenario Python3 compatible