python-ogn-client/tests/parser/test_parse_spot.py

18 wiersze
435 B
Python
Czysty Zwykły widok Historia

2017-10-04 21:23:41 +00:00
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()