def init_test1(self): utils.reset(file_new) utils.reset(file_out) utils.write_in( file_new, "85G2327||CET||1||CH||Genestrerio, Croce Grande|Genestrerio, Croce G|||455124N|29|085754E||||OBB|8575607|UIC|85G2327|8575607|||8575607|UIC\n" )
def init_test3(self): utils.reset(file_mapping_provider) utils.reset(file_out) utils.write_in( file_mapping_provider, "|85G0220|CET|1|CH||LUETISBURG|LUETISBURG||||472301N|26|090414E|||||EVA|8506204|RDS\n" )
def init_test2(self): utils.reset(file_old) utils.reset(file_out) utils.write_in( file_old, "85G2327\t\tCET\t\t1\t\tCH\t\tGenestrerio, Croce Grande\tGenestrerio, Croce G\t\t\t455124N\t29\t085754E\t\t\t\tOBB\t8575607\tUIC\t85G2327\t8575607\t\t\t8575607\tUIC\n", )
def init_test4(self): utils.reset(file_new) utils.reset(file_out) utils.reset(file_mapping_other) utils.write_in( file_new, "0000000||CET||1||FR||Paris TEST|Paris TEST|||455124N|29|085754E||||OBB|4561348|UIC|0000000|4561348|||4561348|UIC\n" ) utils.write_in( file_mapping_other, "|CET||1||FR||Paris TEST|Paris TEST|||11G1111|532309N|29|004606W||||FRR|4561348|UIC\n" )
def init_test5(self): mapping_other.clear() utils.reset(file_new) utils.reset(file_out) utils.reset(file_mapping_other) utils.write_in( file_new, "0000000||CET||1||FR||Paris TEST|Paris TEST|||455124N|29|085754E||||OBB|4561348|UIC|0000000|4561348|||4561348|UIC\n" ) utils.write_in( file_mapping_other, "|CET||1||FR||TEST|TEST|||45G7874|532309N|29|004606W||||FRR|1234567|UIC\n" )
def init_test8(self): mapping_other.clear() mapping_provider.clear() ama_locations.clear() utils.reset(file_new) utils.reset(file_out) utils.reset(file_mapping_provider) utils.reset(file_mapping_other) utils.reset(file_ama_locations) utils.write_in( file_new, "0000000||CET||1||FR||AVIGNON|AVIGNON|||455124N|29|085754E||||OBB|4561348|UIC|0000000|4561348|||4561348|UIC\n" ) utils.write_in( file_mapping_provider, "45G4546||CET||1||FR||TEST|TEST|||455124N|29|085754E||||OBB|1234156|UIC|45G4546|1234156|||1234156|UIC\n" ) utils.write_in( file_mapping_other, "45G4546||CET||1||FR||TEST|TEST|||455124N|29|085754E||||OBB|4561348|UIC|45G4546|4561348|||4561348|UIC\n" ) utils.write_in( file_ama_locations, "4561348||CET||1||FR||TEST|TEST|||455124N|29|085754E||||OBB|4561348|UIC|45G4546|4561348|||4561348|UIC\n" )
def init_test9(self): utils.reset(file_new) utils.reset(file_out) utils.reset(out_ama) utils.write_in(file_new, "1045647|Station name\n")
def load_ama(*args): line = args[0] utils.write_in(out_ama, "|".join(line))
def load(*args): line = args[0] utils.write_in(file_out, "|".join(line))