Beispiel #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)
Beispiel #2
0
 def test_ping_synchronous(self):
     result = ping()
     assert_equal(result, "pong")
Beispiel #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)
Beispiel #4
0
 def test_ping_synchronous(self):
     result = ping()
     assert_equal(result, "pong")