def test_basic_call_on_method_through_api_instance_coroutine():
 class API(object, ):
  def hello_world(self):
   return 'Hello World!'
 api_instance = API()
 @hug.call()
 @asyncio.coroutine
 def hello_world():
  return api_instance.hello_world()
 assert (api_instance.hello_world() == 'Hello World!')
 assert (hug.test.get(api, '/hello_world').data == 'Hello World!')

def test_basic_call_on_method_through_api_instance_coroutine ( ) : class API ( object , ) : def hello_world ( self ) : return 'Hello World!' api_instance = API ( ) @ hug . call ( ) @ asyncio . coroutine def hello_world ( ) : return api_instance . hello_world ( ) assert ( api_instance . hello_world ( ) == 'Hello World!' ) assert ( hug . test . get ( api , '/hello_world' ) . data == 'Hello World!' )
test to ensure the most basic call still works if applied to a method .