#NEWLINE# def check_path( path ) : #NEWLINE# #INDENT# for node in path . nodes : #NEWLINE# #INDENT# check_path_node ( node ) #NEWLINE# #UNINDENT# for ( start , end ) in zip ( path . nodes [ : ( - 1 ) ] , path . nodes [ 1 : ] ) : #NEWLINE# #INDENT# for k in set ( start ) . union ( end ) : #NEWLINE# #INDENT# if ( ( k != 'name' ) and ( k in start ) and ( k in end ) ) : #NEWLINE# #INDENT# assert_ ( ( start [ k ] == end [ k ] ) ) #NEWLINE# #UNINDENT# if ( start . get ( k ) is END ) : #NEWLINE# #INDENT# assert_ ( ( end . get ( k ) is END ) ) #NEWLINE# #UNINDENT# if ( end . get ( k ) is START ) : #NEWLINE# #INDENT# assert_ ( ( start . get ( k ) is START ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# assert_ ( ( len ( k . nodes ) == ( len ( path . transforms ) + 1 ) ) )