Exemplo n.º 1
0
 def test_not_ascii(self):
     # TODO: Obtain an actual sample non-ASCII APRS message for testing. This one is just made up because previous code crashed without logging the problematic message.
     self.__check_parsed(
         'FOO>BAR:>a\xB0b',
         facts=[Status(u'a\uFFFDb')],
         errors=[],
         comment='')
Exemplo n.º 2
0
 def test_status(self):
     self.assertEqual('', self.s.get_status())
     self.s.receive(self.__message([Status('foo')]))
     self.assertEqual('foo', self.s.get_status())
Exemplo n.º 3
0
 def test_status(self):
     self.__check_parsed('WE6Z>APT314,K6FGA-1*,N6ZX-3*,WIDE2*:>147.195',
                         facts=[Status('147.195')],
                         errors=[],
                         comment='')