Merge pull request #16 from kerel-fs/fix/test_v025

parser/test_v025: Add missing reference_date
pull/17/head
Fabian P. Schmidt 2016-10-17 00:56:09 +02:00 zatwierdzone przez GitHub
commit 6a2282c28d
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -1,7 +1,8 @@
# CHANGELOG
## 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
- Added aprs destination callsign as `dstcall` to aprs beacon keys (#9)

Wyświetl plik

@ -38,7 +38,7 @@ class TestStringMethods(unittest.TestCase):
def test_v025(self):
# 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"
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['receiver_name'], "GLIDERN1")