예제 #1
0
#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8


import ureport_env, os
from celery_exec import execute_async

from ureport.tasks import ping

print "Ok, going to do something...."


ping()

print "Ping'd"


execute_async(ping)
예제 #2
0
 def test_ping_synchronous(self):
     result = ping()
     assert_equal(result, "pong")
예제 #3
0
#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8

import ureport_env, os
from celery_exec import execute_async

from ureport.tasks import ping

print "Ok, going to do something...."

ping()

print "Ping'd"

execute_async(ping)
예제 #4
0
 def test_ping_synchronous(self):
     result = ping()
     assert_equal(result, "pong")