def test_with_file(self, fix_cty_xml_file): lib = LookupLib(lookuptype="clublogxml", filename=fix_cty_xml_file) assert lib.lookup_entity(230) == response_Entity_230
def test_with_no_api_key(self): with pytest.raises(APIKeyMissingError): lib = LookupLib(lookuptype="clublogxml") lib.lookup_entity(230)