moved freq_to_band to pyhamtools.frequency; short callsigns in other countries (e.g. C6A/9H5A) are now correctly decoded; improved documentation

This commit is contained in:
dh1tw 2014-09-27 01:48:59 +02:00
parent cd00dc6ab9
commit 87a705c5c4
33 changed files with 493 additions and 253 deletions

View file

@ -138,7 +138,7 @@ class Test_callinfo_methods:
assert fix_callinfo._dismantle_callsign("DH1TW") == response_prefix_DH_clublog
assert fix_callinfo._dismantle_callsign("DL/HC2AO") == response_prefix_DH_clublog
assert fix_callinfo._dismantle_callsign("9H5A/C6A") == response_prefix_C6A_clublog
# assert fix_callinfo._dismantle_callsign("C6A/9H5A") == response_Prefix_C6A
assert fix_callinfo._dismantle_callsign("C6A/9H5A") == response_prefix_C6A_clublog
if fix_callinfo._lookuplib._lookuptype == "countryfile":
assert fix_callinfo._dismantle_callsign("DH1TW/QRP") == response_prefix_DH_countryfile
@ -153,8 +153,7 @@ class Test_callinfo_methods:
assert fix_callinfo._dismantle_callsign("DH1TW") == response_prefix_DH_countryfile
assert fix_callinfo._dismantle_callsign("DL/HC2AO") == response_prefix_DH_countryfile
assert fix_callinfo._dismantle_callsign("9H5A/C6A") == response_prefix_C6A_countryfile
# assert fix_callinfo._dismantle_callsign("C6A/9H5A") == response_Prefix_C6A
assert fix_callinfo._dismantle_callsign("C6A/9H5A") == response_prefix_C6A_countryfile
def test_lookup_callsign(selfself, fix_callinfo):

View file

@ -1,5 +1,5 @@
import pytest
from pyhamtools.utils import freq_to_band
from pyhamtools.frequency import freq_to_band
from pyhamtools.consts import LookupConventions as const
class Test_utils_freq_to_band():