#NEWLINE# def test_hierarchy_isa( self ) : #NEWLINE# #INDENT# ' Test hierarchical lookup.\n\t\t' #NEWLINE# cpt = SNOMEDConcept ( '315004001' ) #NEWLINE# child = SNOMEDConcept ( '128462008' ) #NEWLINE# self . assertTrue ( cpt . isa ( child . code ) ) #NEWLINE# child = SNOMEDConcept ( '363346000' ) #NEWLINE# self . assertTrue ( cpt . isa ( child ) ) #NEWLINE# child = SNOMEDConcept ( '55342001' ) #NEWLINE# self . assertTrue ( cpt . isa ( child . code ) ) #NEWLINE# child = SNOMEDConcept ( '408643008' ) #NEWLINE# self . assertFalse ( cpt . isa ( child . code ) )