kopia lustrzana https://github.com/glidernet/python-ogn-client
17 wiersze
443 B
Python
17 wiersze
443 B
Python
import unittest
|
|
|
|
from ogn.parser.aprs_comment.spot_parser import SpotParser
|
|
|
|
|
|
class TestStringMethods(unittest.TestCase):
|
|
def test_position_comment(self):
|
|
message = SpotParser().parse_position("id0-2860357 SPOT3 GOOD")
|
|
|
|
self.assertEqual(message['address'], "0-2860357")
|
|
self.assertEqual(message['model'], 'SPOT3')
|
|
self.assertEqual(message['status'], "GOOD")
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|