#NEWLINE# def test_service_delete( self ) : #NEWLINE# #INDENT# fake_service = dict ( id = 42 , host = 'fake_host' , binary = 'nova-compute' , topic = 'compute' ) #NEWLINE# ctxt = self . ctxt . elevated ( ) #NEWLINE# db . service_create ( ctxt , fake_service ) #NEWLINE# self . src_msg_runner . service_delete ( ctxt , self . tgt_cell_name , fake_service [ 'id' ] ) #NEWLINE# self . assertRaises ( exception . ServiceNotFound , db . service_get , ctxt , fake_service [ 'id' ] )