def test_parse_uncompressed_position(): lat, lng, amb, st, sid = PositionPacket._parse_uncompressed_position("5100.00N/11400.00Wk") assert lat == 51 assert lng == -114 assert amb == 0 assert st == "/" assert sid == "k"
def test_parse_invalid_uncompressed_position(): with pytest.raises(ParseError): # Missing symbol ID PositionPacket._parse_uncompressed_position("5100.00N/11400.00W")