def test_takes_arguments():
 assert (hug.introspect.takes_arguments(function_with_kwargs, 'argument1', 'argument3') == set(('argument1',)))
 assert (hug.introspect.takes_arguments(function_with_args, 'bacon') == set())
 assert (hug.introspect.takes_arguments(function_with_neither, 'argument1', 'argument2') == set(('argument1', 'argument2')))
 assert (hug.introspect.takes_arguments(function_with_both, 'argument3', 'bacon') == set(('argument3',)))

def test_takes_arguments ( ) : assert ( hug . introspect . takes_arguments ( function_with_kwargs , 'argument1' , 'argument3' ) == set ( ( 'argument1' , ) ) ) assert ( hug . introspect . takes_arguments ( function_with_args , 'bacon' ) == set ( ) ) assert ( hug . introspect . takes_arguments ( function_with_neither , 'argument1' , 'argument2' ) == set ( ( 'argument1' , 'argument2' ) ) ) assert ( hug . introspect . takes_arguments ( function_with_both , 'argument3' , 'bacon' ) == set ( ( 'argument3' , ) ) )
test to ensure hug introspection can correctly identify which arguments supplied a function will take .