def test_ignore_underscore(): funcs = funcdoc.find_handlers(underscore_code) names = {fn['name'] for fn in funcs} assert {'info', 'warning'} == names, 'names'
def test_find_handlers(): funcs = funcdoc.find_handlers(find_handlers_code) assert find_handlers_expected == funcs