def test_is_part_of_parent(ontology): from encoded.audit.biosample import is_part_of assert is_part_of('UBERON:0002469', 'UBERON:0001043', ontology)
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)
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)
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)
def test_is_part_of_parent(ontology): from encoded.audit.biosample import is_part_of assert is_part_of('UBERON:0002469', 'UBERON:0001043', ontology)
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)
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)
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)