@@ -0,0 +1,1748 @@
+from indra.databases import uniprot_client%0A%0Adef test_query_protein_exists():%0A    g = uniprot_client.query_protein('P00533')%0A    assert(g is not None)%0A%0Adef test_query_protein_nonexist():%0A    g = uniprot_client.query_protein('XXXX')%0A    assert(g is None)%0A%0Adef test_get_family_members():%0A    members = uniprot_client.get_family_members('RAF')%0A    assert('ARAF' in members)%0A    assert('BRAF' in members)%0A    assert('RAF1' in members)%0A%0Adef test_get_hgnc_name_human():%0A    g = uniprot_client.query_protein('P00533')%0A    hgnc_name = uniprot_client.get_hgnc_name(g)%0A    assert(hgnc_name == 'EGFR')%0A%0Adef test_get_hgnc_name_nonhuman():%0A    g = uniprot_client.query_protein('P31938')%0A    hgnc_name = uniprot_client.get_hgnc_name(g)%0A    assert(hgnc_name is None)%0A%0Adef test_get_gene_name_human():%0A    g = uniprot_client.query_protein('P00533')%0A    gene_name = uniprot_client.get_gene_name(g)%0A    assert(gene_name == 'EGFR')%0A%0Adef test_get_gene_name_nonhuman():%0A    g = uniprot_client.query_protein('P31938')%0A    gene_name = uniprot_client.get_gene_name(g)%0A    assert(gene_name == 'Map2k1')%0A%0Adef test_get_sequence():%0A    g = uniprot_client.query_protein('P00533')%0A    seq = uniprot_client.get_sequence(g)%0A    assert(len(seq) %3E 1000)%0A%0Adef test_get_modifications():%0A    g = uniprot_client.query_protein('P27361')%0A    mods = uniprot_client.get_modifications(g)%0A    assert(('Phosphothreonine', 202) in mods)%0A    assert(('Phosphotyrosine', 204) in mods)%0A%0Adef test_verify_location():%0A    g = uniprot_client.query_protein('P27361')%0A    assert(uniprot_client.verify_location(g, 'T', 202)) %0A    assert(not uniprot_client.verify_location(g, 'S', 202))%0A    assert(not uniprot_client.verify_location(g, 'T', -1))%0A    assert(not uniprot_client.verify_location(g, 'T', 10000))%0A

Add tests for UniProt client