예제 #1
0
 def test_constructor_with_invalid_file(self):
     with pytest.raises(IOError):
         lib = LookupLib("countryfile", filename="foo bar")
         lib.lookup_callsign("GB0BVL")
예제 #2
0
 def test_constructor_with_file_instead_of_downlad(self, fix_plist_file):
     lib = LookupLib("countryfile", filename=fix_plist_file)
     assert lib.lookup_callsign("3D2RI") == response_Exception_3D2RI
 def test_with_no_api_key(self):
     with pytest.raises(APIKeyMissingError):
         lib = LookupLib(lookuptype="clublogapi")
         lib.lookup_callsign("DH1TW")
 def test_with_no_api_key(self):
     with pytest.raises(APIKeyMissingError):
         lib = LookupLib(lookuptype="clublogapi")
         lib.lookup_callsign("DH1TW")
 def test_constructor_with_invalid_file(self):
     with pytest.raises(IOError):
         lib = LookupLib("countryfile", filename="foo bar")
         lib.lookup_callsign("GB0BVL")
 def test_constructor_with_file_instead_of_downlad(self, fix_plist_file):
     lib = LookupLib("countryfile", filename=fix_plist_file)
     assert lib.lookup_callsign("3D2RI") == response_Exception_3D2RI