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

18 wiersze
457 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):
@unittest.skip("Not yet implemented")
def test(self):
2017-10-05 08:36:53 +00:00
message = SpotParser.parse_position("id0-2860357 SPOT3 GOOD")
2017-10-04 21:23:41 +00:00
self.assertEqual(message['id'], "0-2860357")
self.assertEqual(message['hw_version'], 3)
self.assertEqual(message['wtf'], "GOOD")
if __name__ == '__main__':
unittest.main()