# Path: ogn/parser/utils.py
# FPM_TO_MS = FEETS_TO_METER / 60     # ratio fpm to m/s
# 
# Path: ogn/parser/aprs_comment/lt24_parser.py
# class LT24Parser(BaseParser):
#     def __init__(self):
#         self.beacon_type = 'lt24'
#         self.position_pattern = PATTERN_LT24_POSITION_COMMENT
# 
#     def parse_position(self, aprs_comment):
#         match = self.position_pattern.match(aprs_comment)
#         return {'lt24_id': match.group('lt24_id'),
#                 'climb_rate': int(match.group('climb_rate')) * FPM_TO_MS if match.group('climb_rate') else None,
#                 'source': match.group('source') if match.group('source') else None}


import unittest
from ogn.parser.utils import FPM_TO_MS
from ogn.parser.aprs_comment.lt24_parser import LT24Parser



class TestStringMethods(unittest.TestCase):
    def test_position_comment(self):
        message = LT24Parser().parse_position("id25387 +123fpm GPS")


# Path: ogn/parser/utils.py
# FPM_TO_MS = FEETS_TO_METER / 60     # ratio fpm to m/s
# 
# Path: ogn/parser/aprs_comment/lt24_parser.py
# class LT24Parser(BaseParser):
#     def __init__(self):
#         self.beacon_type = 'lt24'
#         self.position_pattern = PATTERN_LT24_POSITION_COMMENT
# 
#     def parse_position(self, aprs_comment):
#         match = self.position_pattern.match(aprs_comment)
#         return {'lt24_id': match.group('lt24_id'),
#                 'climb_rate': int(match.group('climb_rate')) * FPM_TO_MS if match.group('climb_rate') else None,
#                 'source': match.group('source') if match.group('source') else None}


# Path: tests/parser/test_parse_lt24.py
import unittest
from ogn.parser.utils import FPM_TO_MS
from ogn.parser.aprs_comment.lt24_parser import LT24Parser




class TestStringMethods(unittest.TestCase):
    def test_position_comment(self):
        message = LT24Parser().parse_position("id25387 +123fpm GPS")


        self.assertEqual(message['lt24_id'], "25387")