def compare_links(actual, expected):
 return compare_tree_to_dict(actual, expected, ('rel', 'href', 'type'))

def compare_links ( actual , expected ) : return compare_tree_to_dict ( actual , expected , ( 'rel' , 'href' , 'type' ) )
compare xml atom links .