class TestAPRSInformation(unittest.TestCase): def setUp(self): self.i = APRSInformation() def test_new_station(self): self.assertEqual([], self.i.state().keys()) self.i.receive(parse_tnc2( 'N6WKZ-3>APU25N,WB6TMS-3*,N6ZX-3*,WIDE2*:=3746.42N112226.00W# {UIV32N}', _dummy_receive_time)) self.assertEqual(['N6WKZ-3'], self.i.state().keys())
class TestAPRSInformation(unittest.TestCase): def setUp(self): self.i = APRSInformation() def test_new_station(self): self.assertEqual([], self.i.state().keys()) self.i.receive( parse_tnc2( 'N6WKZ-3>APU25N,WB6TMS-3*,N6ZX-3*,WIDE2*:=3746.42N112226.00W# {UIV32N}', _dummy_receive_time)) self.assertEqual(['N6WKZ-3'], self.i.state().keys())
class TestAPRSInformation(unittest.TestCase): def setUp(self): self.i = APRSInformation() def test_new_station(self): self.assertEqual([], self.i.state().keys()) self.i.receive(parse_tnc2( 'N6WKZ-3>APU25N,WB6TMS-3*,N6ZX-3*,WIDE2*:=3746.42N112226.00W# {UIV32N}', _dummy_receive_time)) self.assertEqual(['N6WKZ-3'], self.i.state().keys()) def test_object_item_report(self): self.i.receive(parse_tnc2( 'KE6AFE-2>APU25N,WR6ABD*,NCA1:;TFCSCRUZ *160323z3655.94N\12200.92W?70 In 10 Minutes', _dummy_receive_time)) self.assertEqual(['KE6AFE-2', 'TFCSCRUZ '], self.i.state().keys())
class TestAPRSInformation(unittest.TestCase): def setUp(self): self.i = APRSInformation() def test_new_station(self): self.assertEqual([], self.i.state().keys()) self.i.receive( parse_tnc2( 'N6WKZ-3>APU25N,WB6TMS-3*,N6ZX-3*,WIDE2*:=3746.42N112226.00W# {UIV32N}', _dummy_receive_time)) self.assertEqual(['N6WKZ-3'], self.i.state().keys()) def test_object_item_report(self): self.i.receive( parse_tnc2( 'KE6AFE-2>APU25N,WR6ABD*,NCA1:;TFCSCRUZ *160323z3655.94N\12200.92W?70 In 10 Minutes', _dummy_receive_time)) self.assertEqual(['KE6AFE-2', 'TFCSCRUZ '], self.i.state().keys())