def get_family_members(nextprot_id): url = nextprot_url + 'FA-' + nextprot_id res = urllib2.urlopen(url) html = res.read() match = re.match(r'(.*)http://www.uniprot.org/uniprot/\?query=family:([^"]*)"',\ html, re.DOTALL|re.MULTILINE) family_name = match.groups()[1] gene_names = uniprot_client.get_family_members(family_name) return gene_names
def test_get_family_members(): members = uniprot_client.get_family_members('RAF') assert 'ARAF' in members assert 'BRAF' in members assert 'RAF1' in members assert unicode_strs(members)
def test_get_family_members(): members = uniprot_client.get_family_members('RAF') assert('ARAF' in members) assert('BRAF' in members) assert('RAF1' in members)