コード例 #1
0
def test_is_part_of_parent(ontology):
    from encoded.audit.biosample import is_part_of
    assert is_part_of('UBERON:0002469', 'UBERON:0001043', ontology)
コード例 #2
0
def test_is_part_of_not_related(ontology):
    from encoded.audit.biosample import is_part_of
    assert not is_part_of('UBERON:1111111', 'UBERON:0001043', ontology)
コード例 #3
0
def test_is_part_of_empty_part_of_in_ontology(ontology):
    from encoded.audit.biosample import is_part_of
    assert not is_part_of('UBERON:0001007', 'UBERON:0001043', ontology)
コード例 #4
0
def test_is_part_of_avoid_infinite_recursion(ontology):
    from encoded.audit.biosample import is_part_of
    assert is_part_of('UBERON:0002469', 'UBERON:0006920', ontology)
コード例 #5
0
def test_is_part_of_parent(ontology):
    from encoded.audit.biosample import is_part_of
    assert is_part_of('UBERON:0002469', 'UBERON:0001043', ontology)
コード例 #6
0
def test_is_part_of_empty_part_of_in_ontology(ontology):
    from encoded.audit.biosample import is_part_of
    assert not is_part_of('UBERON:0001007', 'UBERON:0001043', ontology)
コード例 #7
0
def test_is_part_of_not_related(ontology):
    from encoded.audit.biosample import is_part_of
    assert not is_part_of('UBERON:1111111', 'UBERON:0001043', ontology)
コード例 #8
0
def test_is_part_of_avoid_infinite_recursion(ontology):
    from encoded.audit.biosample import is_part_of
    assert is_part_of('UBERON:0002469', 'UBERON:0006920', ontology)