kopia lustrzana https://github.com/glidernet/ogn-python
Test empty string
rodzic
2f456a0eef
commit
c3ceda888c
|
@ -30,5 +30,9 @@ class TestStringMethods(unittest.TestCase):
|
||||||
result = parse_aprs(line)
|
result = parse_aprs(line)
|
||||||
print(str(result), "\n")
|
print(str(result), "\n")
|
||||||
|
|
||||||
|
def test_fail_empty(self):
|
||||||
|
with self.assertRaises(Exception):
|
||||||
|
parse_aprs("")
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Ładowanie…
Reference in New Issue