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)
|
||||
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("")
|
||||
|
|
Ładowanie…
Reference in New Issue