kopia lustrzana https://github.com/glidernet/python-ogn-client
Merge pull request #16 from kerel-fs/fix/test_v025
parser/test_v025: Add missing reference_datepull/17/head
commit
6a2282c28d
|
@ -1,7 +1,8 @@
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
- updated the parser for the 0.2.5 protocol
|
- parser: Added support for OGN v0.2.5 receiver beacons
|
||||||
|
- parser: Changed keys to adopt naming from [ogn\_client-ruby](https://github.com/svoop/ogn_client-ruby)
|
||||||
|
|
||||||
## 0.5.0 - 2016-09-29
|
## 0.5.0 - 2016-09-29
|
||||||
- Added aprs destination callsign as `dstcall` to aprs beacon keys (#9)
|
- Added aprs destination callsign as `dstcall` to aprs beacon keys (#9)
|
||||||
|
|
|
@ -38,7 +38,7 @@ class TestStringMethods(unittest.TestCase):
|
||||||
def test_v025(self):
|
def test_v025(self):
|
||||||
# introduced the "aprs status" format where many informations (lat, lon, alt, speed, ...) are just optional
|
# introduced the "aprs status" format where many informations (lat, lon, alt, speed, ...) are just optional
|
||||||
raw_message = "EPZR>APRS,TCPIP*,qAC,GLIDERN1:>093456h this is a comment"
|
raw_message = "EPZR>APRS,TCPIP*,qAC,GLIDERN1:>093456h this is a comment"
|
||||||
message = parse_aprs(raw_message)
|
message = parse_aprs(raw_message, reference_date=datetime(2015, 1, 1, 9, 35, 29))
|
||||||
|
|
||||||
self.assertEqual(message['name'], "EPZR")
|
self.assertEqual(message['name'], "EPZR")
|
||||||
self.assertEqual(message['receiver_name'], "GLIDERN1")
|
self.assertEqual(message['receiver_name'], "GLIDERN1")
|
||||||
|
|
Ładowanie…
Reference in New Issue