pull/1/head
Konstantin Gründger 2015-10-24 23:57:31 +02:00
rodzic c3ceda888c
commit f416e9bfcd
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -30,6 +30,10 @@ class TestStringMethods(unittest.TestCase):
result = parse_aprs(line)
print(str(result), "\n")
def test_fail_none(self):
with self.assertRaises(Exception):
parse_aprs(None)
def test_fail_empty(self):
with self.assertRaises(Exception):
parse_aprs("")