From c3ceda888c3ed35a23fbd00368ccac9d4f556c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Gru=CC=88ndger?= Date: Sat, 24 Oct 2015 23:44:07 +0200 Subject: [PATCH] Test empty string --- tests/test_aprs_parser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_aprs_parser.py b/tests/test_aprs_parser.py index 39f5d50..4e606be 100644 --- a/tests/test_aprs_parser.py +++ b/tests/test_aprs_parser.py @@ -30,5 +30,9 @@ class TestStringMethods(unittest.TestCase): result = parse_aprs(line) print(str(result), "\n") + def test_fail_empty(self): + with self.assertRaises(Exception): + parse_aprs("") + if __name__ == '__main__': unittest.main()