1212def _parse_valid_beacon_data_file (filename , beacon_type ):
1313 with open (os .path .dirname (__file__ ) + '/../../ogn-aprs-protocol/valid_messages/' + filename ) as f :
1414 for line in f :
15+ if line .strip () == '' :
16+ continue
17+
1518 try :
1619 message = parse (line , datetime (2015 , 4 , 10 , 17 , 0 ))
1720 assert message is not None
@@ -29,26 +32,38 @@ def test_aprs_receiver_beacons():
2932 _parse_valid_beacon_data_file (filename = 'APRS_receiver.txt' , beacon_type = 'aprs_receiver' )
3033
3134
32- def test_aprs_fanet_beacons ():
33- _parse_valid_beacon_data_file (filename = 'OGNFNT_Fanet .txt' , beacon_type = 'fanet ' )
35+ def test_flyxc_beacons ():
36+ _parse_valid_beacon_data_file (filename = 'FXCAPP_flyxc .txt' , beacon_type = 'unknown ' )
3437
3538
36- def test_flarm_beacons ():
37- _parse_valid_beacon_data_file (filename = 'OGFLR_Flarm .txt' , beacon_type = 'flarm ' )
39+ def test_adsb_beacons ():
40+ _parse_valid_beacon_data_file (filename = 'OGADSB_ADSB .txt' , beacon_type = 'unknown ' )
3841
3942
40- def test_receiver_beacons ():
41- _parse_valid_beacon_data_file (filename = 'OGNSDR_TCPIPmsgs.txt ' , beacon_type = 'receiver ' )
43+ def test_adsl_beacons ():
44+ _parse_valid_beacon_data_file (filename = 'OGADSL_Tracker_with_ADSL ' , beacon_type = 'unknown ' )
4245
4346
44- def test_tracker_beacons ():
45- _parse_valid_beacon_data_file (filename = 'OGNTRK_OGNtracker.txt' , beacon_type = 'tracker' )
47+ def test_airmate_beacons ():
48+ _parse_valid_beacon_data_file (filename = 'OGAIRM_Airmate.txt' , beacon_type = 'unknown' )
49+
50+
51+ def test_apik_beacons ():
52+ _parse_valid_beacon_data_file (filename = 'OGAPIK_APIKdevice.txt' , beacon_type = 'unknown' )
4653
4754
4855def test_capturs_beacons ():
4956 _parse_valid_beacon_data_file (filename = 'OGCAPT_Capturs.txt' , beacon_type = 'capturs' )
5057
5158
59+ def test_evario_beacons ():
60+ _parse_valid_beacon_data_file (filename = 'OGEVARIO_evario.txt' , beacon_type = 'unknown' )
61+
62+
63+ def test_flarm_beacons ():
64+ _parse_valid_beacon_data_file (filename = 'OGFLR_Flarm.txt' , beacon_type = 'flarm' )
65+
66+
5267def test_flymaster_beacons ():
5368 _parse_valid_beacon_data_file (filename = 'OGFLYM_Flymaster.txt' , beacon_type = 'flymaster' )
5469
@@ -65,6 +80,62 @@ def test_naviter_beacons():
6580 _parse_valid_beacon_data_file (filename = 'OGNAVI_Naviter.txt' , beacon_type = 'naviter' )
6681
6782
83+ def test_delay_beacons ():
84+ _parse_valid_beacon_data_file (filename = 'OGNDELAY_Delay.txt' , beacon_type = 'unknown' )
85+
86+
87+ def test_wx_beacons ():
88+ _parse_valid_beacon_data_file (filename = 'OGNDVS_wx.txt' , beacon_type = 'unknown' )
89+
90+
91+ def test_nemo_beacons ():
92+ _parse_valid_beacon_data_file (filename = 'OGNEMO_Nemo.txt' , beacon_type = 'unknown' )
93+
94+
95+ def test_flying_neurons_beacons ():
96+ _parse_valid_beacon_data_file (filename = 'OGNFNO_FlyingNeurons.txt' , beacon_type = 'unknown' )
97+
98+
99+ def test_fanet_weather_beacons ():
100+ _parse_valid_beacon_data_file (filename = 'OGNFNT_Fanet_weather.txt' , beacon_type = 'fanet' )
101+
102+
103+ def test_fanet_beacons ():
104+ _parse_valid_beacon_data_file (filename = 'OGNFNT_Fanet.txt' , beacon_type = 'fanet' )
105+
106+
107+ def test_microtrack_beacons ():
108+ _parse_valid_beacon_data_file (filename = 'OGNMTK_Microtrack.txt' , beacon_type = 'microtrak' )
109+
110+
111+ def test_myc_tracker_beacons ():
112+ _parse_valid_beacon_data_file (filename = 'OGNMYC_OGNtracker.txt' , beacon_type = 'unknown' )
113+
114+
115+ def test_receiver_beacons ():
116+ _parse_valid_beacon_data_file (filename = 'OGNSDR_TCPIPmsgs.txt' , beacon_type = 'receiver' )
117+
118+
119+ def test_safesky_beacons ():
120+ _parse_valid_beacon_data_file (filename = 'OGNSKY_SafeSky.txt' , beacon_type = 'safesky' )
121+
122+
123+ def test_ognbase_beacons ():
124+ _parse_valid_beacon_data_file (filename = 'OGNSXR_OGNbase.txt' , beacon_type = 'unknown' )
125+
126+
127+ def test_tracker_beacons ():
128+ _parse_valid_beacon_data_file (filename = 'OGNTRK_OGNtracker.txt' , beacon_type = 'tracker' )
129+
130+
131+ def test_thethingsnetwork_beacons ():
132+ _parse_valid_beacon_data_file (filename = 'OGNTTN_TheThingsNetwork.txt' , beacon_type = 'unknown' )
133+
134+
135+ def test_wingman_beacons ():
136+ _parse_valid_beacon_data_file (filename = 'OGNWMN_Wingman.txt' , beacon_type = 'unknown' )
137+
138+
68139def test_pilot_aware_beacons ():
69140 _parse_valid_beacon_data_file (filename = 'OGPAW_PilotAware.txt' , beacon_type = 'pilot_aware' )
70141
0 commit comments