def test_query_protein_deprecated(): g = uniprot_client.query_protein('Q8NHX1') assert g is not None gene_name = uniprot_client.get_gene_name('Q8NHX1') assert gene_name == 'MAPK3' gene_name = uniprot_client.get_gene_name('Q8NHX1', web_fallback=False) assert gene_name == 'MAPK3'
def test_query_protein_exists(): g = uniprot_client.query_protein('P00533') assert g is not None
def test_query_protein_nonexist(): g = uniprot_client.query_protein('XXXX') assert g is None
def test_query_protein_nonexist(): tree = uniprot_client.query_protein('XXXX') assert tree is None