#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# api . nova : ( 'hypervisor_list' , 'hypervisor_stats' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_index( self ) : #NEWLINE# #INDENT# hypervisor = self . hypervisors . list ( ) . pop ( ) . hypervisor_hostname #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# url = reverse ( 'horizon:admin:hypervisors:compute:disable_service' , args = [ res ] ) #NEWLINE# res = self . client . get ( url ) #NEWLINE# template = 'admin/hypervisors/compute/disable_service.html' #NEWLINE# self . assertTemplateUsed ( res , template )