#NEWLINE# def test_top_matches_with_string( self ) : #NEWLINE# #INDENT# top = { #NEWLINE# #INDENT# 'env' : { #NEWLINE# #INDENT# 'match' : 'state1' , #NEWLINE# 'nomatch' : 'state2' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# matches = self . highstate . top_matches ( matches ) #NEWLINE# self . assertEqual ( matches , { #NEWLINE# #INDENT# 'env' : [ 'state1' ] , #NEWLINE# #UNINDENT# } )