#NEWLINE# def test_services_delete( self ) : #NEWLINE# #INDENT# self . ext_mgr . extensions [ 'os-extended-services-delete' ] = True #NEWLINE# with mock . patch . object ( self . controller . host_api , 'service_delete' ) as service_delete : #NEWLINE# #INDENT# self . controller . delete ( self . req , '1' ) #NEWLINE# service_delete . assert_called_once_with ( service_delete . req . environ [ 'nova.context' ] , '1' ) #NEWLINE# self . assertEqual ( self . controller . delete . wsgi_code , 204 )