Another test of the strip function.

pull/61/head
Christian T. Jacobs 2017-07-07 12:21:00 +01:00
rodzic f4175ba40c
commit 80f60591b1
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -63,6 +63,11 @@ class TestCallsignLookup(unittest.TestCase):
callsign = "MYCALL"
assert strip(callsign) == "MYCALL"
def test_strip_too_many_components(self):
""" Check that a callsign with too many prefix/suffix components remains unmodified. """
callsign = "F/HB9/MYCALL/MM"
assert strip(callsign) == "F/HB9/MYCALL/MM"
def test_qrz_connect(self):
""" Check the example response from the qrz.com server, and make sure the session key has been correctly extracted. """