#NEWLINE# def test_synthetic_addresses( self ) : #NEWLINE# #INDENT# test_file = 'measure_performance/test_data/synthetic_osm_data.xml' #NEWLINE# data = list ( readTrainingData ( [ test_file ] , GROUP_LABEL ) ) #NEWLINE# for labeled_address in data : #NEWLINE# #INDENT# ( address_text , components ) = labeled_address #NEWLINE# ( _ , labels_true ) = list ( zip ( * components ) ) #NEWLINE# ( _ , labels_pred ) = list ( zip ( * parse ( address_text ) ) ) #NEWLINE# ( yield ( equals , address_text , address_text , labels_true ) )