示例#1
0
def test_parent():
    toolkit = Toolkit()
    assert 'contributes to' in toolkit.get_parent('causes')
    assert 'interacts with' in toolkit.get_parent('physically interacts with')
    assert 'genomic entity' in toolkit.get_parent('gene')
    assert 'biolink:GenomicEntity' in toolkit.get_parent('gene',
                                                         formatted=True)
示例#2
0
def test_parent():
    toolkit = Toolkit()
    assert 'contributes to' in toolkit.get_parent('causes')
    assert 'interacts with' in toolkit.get_parent('physically interacts with')
    assert 'gene or gene product' in toolkit.get_parent('gene')
    assert 'biolink:GeneOrGeneProduct' in toolkit.get_parent(
        'gene or gene product', formatted=True)