kopia lustrzana https://github.com/glidernet/python-ogn-client
18 wiersze
435 B
Python
18 wiersze
435 B
Python
![]() |
import unittest
|
||
|
|
||
|
from ogn.parser.parse_spot import OGSPOT
|
||
|
|
||
|
|
||
|
class TestStringMethods(unittest.TestCase):
|
||
|
@unittest.skip("Not yet implemented")
|
||
|
def test(self):
|
||
|
message = OGSPOT.parse_position("id0-2860357 SPOT3 GOOD")
|
||
|
|
||
|
self.assertEqual(message['id'], "0-2860357")
|
||
|
self.assertEqual(message['hw_version'], 3)
|
||
|
self.assertEqual(message['wtf'], "GOOD")
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
unittest.main()
|