#NEWLINE# def test_variable_node_more_specific_first( ) : #NEWLINE# #INDENT# node = Node ( ) #NEWLINE# xy_node = node . add ( Step ( 'x{x}y' ) ) #NEWLINE# xay_node = node . add ( Step ( 'xa{x}y' ) ) #NEWLINE# ay_node = node . add ( Step ( 'a{x}y' ) ) #NEWLINE# assert ( node . get ( 'xwhaty' ) == ( xy_node , { #NEWLINE# #INDENT# 'x' : 'what' , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# assert ( node . get ( 'xawhaty' ) == ( xay_node , { #NEWLINE# #INDENT# 'x' : 'what' , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# assert ( node . get ( 'awhaty' ) == ( ay_node , { #NEWLINE# #INDENT# 'x' : 'what' , #NEWLINE# #UNINDENT# } ) )