def test_takes_args():
 assert (not hug.introspect.takes_args(function_with_kwargs))
 assert hug.introspect.takes_args(function_with_args)
 assert (not hug.introspect.takes_args(function_with_neither))
 assert hug.introspect.takes_args(function_with_both)

def test_takes_args ( ) : assert ( not hug . introspect . takes_args ( function_with_kwargs ) ) assert hug . introspect . takes_args ( function_with_args ) assert ( not hug . introspect . takes_args ( function_with_neither ) ) assert hug . introspect . takes_args ( function_with_both )
test to ensure hug introspection can correctly identify when a function takes args .