def test_parse_data_with_altitude(): phg, rng, dfs, course, speed, altitude, comment = PositionPacket._parse_data( "/A=002000Test status" ) assert altitude == 2000
def test_parse_data_with_rng(): phg, rng, dfs, course, speed, altitude, comment = PositionPacket._parse_data( "RNG0050" ) assert rng == "0050"
def test_parse_data_with_dfs(): phg, rng, dfs, course, speed, altitude, comment = PositionPacket._parse_data( "DFS2360" ) assert dfs == "2360"
def test_parse_data_with_phg(): phg, rng, dfs, course, speed, altitude, comment = PositionPacket._parse_data( "PHG5132" ) assert phg == "5132"