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()