#NEWLINE# def test_stop_unregisters_conductor( self ) : #NEWLINE# #INDENT# self . _start_service ( ) #NEWLINE# res = objects . Conductor . get_by_hostname ( self . context , self . hostname ) #NEWLINE# self . assertEqual ( self . hostname , res [ 'hostname' ] ) #NEWLINE# self . service . del_host ( ) #NEWLINE# self . assertRaises ( exception . ConductorNotFound , objects . Conductor . get_by_hostname , self . context , self . hostname )