kopia lustrzana https://github.com/glidernet/ogn-python
Test None fail
rodzic
c3ceda888c
commit
f416e9bfcd
|
@ -30,6 +30,10 @@ class TestStringMethods(unittest.TestCase):
|
||||||
result = parse_aprs(line)
|
result = parse_aprs(line)
|
||||||
print(str(result), "\n")
|
print(str(result), "\n")
|
||||||
|
|
||||||
|
def test_fail_none(self):
|
||||||
|
with self.assertRaises(Exception):
|
||||||
|
parse_aprs(None)
|
||||||
|
|
||||||
def test_fail_empty(self):
|
def test_fail_empty(self):
|
||||||
with self.assertRaises(Exception):
|
with self.assertRaises(Exception):
|
||||||
parse_aprs("")
|
parse_aprs("")
|
||||||
|
|
Ładowanie…
Reference in New Issue