kopia lustrzana https://github.com/glidernet/python-ogn-client
17 wiersze
421 B
Python
17 wiersze
421 B
Python
import unittest
|
|
|
|
from ogn.parser.utils import ms2fpm
|
|
from ogn.parser.aprs_comment.skylines_parser import SkylinesParser
|
|
|
|
|
|
class TestStringMethods(unittest.TestCase):
|
|
def test(self):
|
|
message = SkylinesParser.parse_position("id2816 -015fpm")
|
|
|
|
self.assertEqual(message['id'], "2816")
|
|
self.assertAlmostEqual(message['climb_rate'] * ms2fpm, -15, 2)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|