2019-06-07 18:45:07 +00:00
|
|
|
import unittest
|
|
|
|
|
|
|
|
from ogn.parser.aprs_comment.generic_parser import GenericParser
|
|
|
|
|
|
|
|
|
|
|
|
class TestStringMethods(unittest.TestCase):
|
|
|
|
def test_position_comment(self):
|
|
|
|
message = GenericParser().parse_position("id0123456789 weather is good, climbing with 123fpm")
|
2025-04-23 08:32:54 +00:00
|
|
|
assert 'comment' in message
|
2019-06-07 18:45:07 +00:00
|
|
|
|
|
|
|
message = GenericParser().parse_status("id0123456789 weather is good, climbing with 123fpm")
|
2025-04-23 08:32:54 +00:00
|
|
|
assert 'comment' in message
|
2019-06-07 18:45:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|