python-ogn-client/tests/parser/test_parse_spot.py

17 wiersze
416 B
Python
Czysty Zwykły widok Historia

2017-10-04 21:23:41 +00:00
import unittest
2017-10-05 08:36:53 +00:00
from ogn.parser.aprs_comment.spot_parser import SpotParser
2017-10-04 21:23:41 +00:00
class TestStringMethods(unittest.TestCase):
2018-04-20 16:52:00 +00:00
def test_position_comment(self):
2019-06-03 19:09:57 +00:00
message = SpotParser().parse_position("id0-2860357 SPOT3 GOOD")
2017-10-04 21:23:41 +00:00
assert message['spot_id'] == "0-2860357"
assert message['model'] == 'SPOT3'
assert message['status'] == "GOOD"
2017-10-04 21:23:41 +00:00
if __name__ == '__main__':
unittest.main()