kopia lustrzana https://github.com/glidernet/python-ogn-client
19 wiersze
501 B
Python
19 wiersze
501 B
Python
import unittest
|
|
|
|
from ogn.parser.utils import ms2fpm
|
|
from ogn.parser.aprs_comment.lt24_parser import LT24Parser
|
|
|
|
|
|
class TestStringMethods(unittest.TestCase):
|
|
@unittest.skip("Not yet implemented")
|
|
def test(self):
|
|
message = LT24Parser.parse_position("id25387 +000fpm GPS")
|
|
|
|
self.assertEqual(message['id'], 25387)
|
|
self.assertAlmostEqual(message['climb_rate'] * ms2fpm, 0, 2)
|
|
self.assertEqual(message['wtf'], 'GPS')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|