From 80b5cc4a482f0402d439cf945513000c2b0c3392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Gru=CC=88ndger?= Date: Fri, 20 Apr 2018 18:52:00 +0200 Subject: [PATCH] Better function naming --- tests/parser/test_parse_fanet.py | 4 ++-- tests/parser/test_parse_lt24.py | 2 +- tests/parser/test_parse_receiver.py | 6 +++--- tests/parser/test_parse_skylines.py | 2 +- tests/parser/test_parse_spider.py | 2 +- tests/parser/test_parse_spot.py | 2 +- tests/parser/test_parse_tracker.py | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/parser/test_parse_fanet.py b/tests/parser/test_parse_fanet.py index 36f1c17..f4cf558 100644 --- a/tests/parser/test_parse_fanet.py +++ b/tests/parser/test_parse_fanet.py @@ -5,13 +5,13 @@ from ogn.parser.aprs_comment.fanet_parser import FanetParser class TestStringMethods(unittest.TestCase): - def test_regular_beacon(self): + def test_position_comment(self): message = FanetParser.parse_position("id1E1103CE -02fpm") self.assertEqual(message['id'], "1E1103CE") self.assertAlmostEqual(message['climb_rate'] * ms2fpm, -2, 0.1) - def test_pseudo_status_beacon(self): + def test_pseudo_status_comment(self): message = FanetParser.parse_position("") self.assertIsNone(message['id']) diff --git a/tests/parser/test_parse_lt24.py b/tests/parser/test_parse_lt24.py index b9ca633..056962a 100644 --- a/tests/parser/test_parse_lt24.py +++ b/tests/parser/test_parse_lt24.py @@ -5,7 +5,7 @@ from ogn.parser.aprs_comment.lt24_parser import LT24Parser class TestStringMethods(unittest.TestCase): - def test(self): + def test_position_comment(self): message = LT24Parser.parse_position("id25387 +000fpm GPS") self.assertEqual(message['id'], "25387") diff --git a/tests/parser/test_parse_receiver.py b/tests/parser/test_parse_receiver.py index c63a8fc..01f4f4c 100644 --- a/tests/parser/test_parse_receiver.py +++ b/tests/parser/test_parse_receiver.py @@ -4,17 +4,17 @@ from ogn.parser.aprs_comment.receiver_parser import ReceiverParser class TestStringMethods(unittest.TestCase): - def test_position(self): + def test_position_comment(self): message = ReceiverParser.parse_position("Antenna: chinese, on a pylon, 20 meter above ground") self.assertEqual(message['user_comment'], "Antenna: chinese, on a pylon, 20 meter above ground") - def test_position_empty(self): + def test_position_comment_empty(self): message = ReceiverParser.parse_position("") self.assertIsNotNone(message) - def test_status(self): + def test_status_comment(self): message = ReceiverParser.parse_status("v0.2.7.RPI-GPU CPU:0.7 RAM:770.2/968.2MB NTP:1.8ms/-3.3ppm +55.7C 7/8Acfts[1h] RF:+54-1.1ppm/-0.16dB/+7.1dB@10km[19481]/+16.8dB@10km[7/13]") self.assertEqual(message['version'], "0.2.7") diff --git a/tests/parser/test_parse_skylines.py b/tests/parser/test_parse_skylines.py index b0f6f79..a0892a4 100644 --- a/tests/parser/test_parse_skylines.py +++ b/tests/parser/test_parse_skylines.py @@ -5,7 +5,7 @@ from ogn.parser.aprs_comment.skylines_parser import SkylinesParser class TestStringMethods(unittest.TestCase): - def test(self): + def test_position_comment(self): message = SkylinesParser.parse_position("id2816 -015fpm") self.assertEqual(message['id'], "2816") diff --git a/tests/parser/test_parse_spider.py b/tests/parser/test_parse_spider.py index 287ee10..4b76024 100644 --- a/tests/parser/test_parse_spider.py +++ b/tests/parser/test_parse_spider.py @@ -4,7 +4,7 @@ from ogn.parser.aprs_comment.spider_parser import SpiderParser class TestStringMethods(unittest.TestCase): - def test(self): + def test_position_comment(self): message = SpiderParser.parse_position("id300234010617040 +19dB LWE 3D") self.assertEqual(message['id'], "300234010617040") diff --git a/tests/parser/test_parse_spot.py b/tests/parser/test_parse_spot.py index b7f9626..f437bc8 100644 --- a/tests/parser/test_parse_spot.py +++ b/tests/parser/test_parse_spot.py @@ -4,7 +4,7 @@ from ogn.parser.aprs_comment.spot_parser import SpotParser class TestStringMethods(unittest.TestCase): - def test(self): + def test_position_comment(self): message = SpotParser.parse_position("id0-2860357 SPOT3 GOOD") self.assertEqual(message['id'], "0-2860357") diff --git a/tests/parser/test_parse_tracker.py b/tests/parser/test_parse_tracker.py index a4a3245..a76321d 100644 --- a/tests/parser/test_parse_tracker.py +++ b/tests/parser/test_parse_tracker.py @@ -5,7 +5,7 @@ from ogn.parser.aprs_comment.tracker_parser import TrackerParser class TestStringMethods(unittest.TestCase): - def test_position_beacon(self): + def test_position_comment(self): message = TrackerParser.parse_position("id072FD00F -058fpm +1.1rot FL003.12 32.8dB 0e -0.8kHz gps3x5") self.assertEqual(message['address_type'], 3) @@ -20,7 +20,7 @@ class TestStringMethods(unittest.TestCase): self.assertEqual(message['frequency_offset'], -0.8) self.assertEqual(message['gps_status'], '3x5') - def test_status(self): + def test_status_comment(self): message = TrackerParser.parse_status("h00 v00 9sat/1 164m 1002.6hPa +20.2degC 0% 3.34V 14/-110.5dBm 1/min") self.assertEqual(message['hardware_version'], 0)