def test_nested_basic_call_coroutine():
 @hug.call()
 @asyncio.coroutine
 def hello_world():
  return asyncio.async(nested_hello_world())
 @hug.local()
 @asyncio.coroutine
 def nested_hello_world():
  return 'Hello World!'
 assert (loop.run_until_complete(hello_world()) == 'Hello World!')

def test_nested_basic_call_coroutine ( ) : @ hug . call ( ) @ asyncio . coroutine def hello_world ( ) : return asyncio . async ( nested_hello_world ( ) ) @ hug . local ( ) @ asyncio . coroutine def nested_hello_world ( ) : return 'Hello World!' assert ( loop . run_until_complete ( hello_world ( ) ) == 'Hello World!' )
the most basic happy-path test for hug apis using async .