#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# api . base : ( 'is_service_enabled' , ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_services_get_disabled( self ) : #NEWLINE# #INDENT# request = self . mock_rest_request ( GET = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# api . base . is_service_enabled ( request , 'orchestration' ) . AndReturn ( False ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# response = heat . Services ( ) . get ( response ) #NEWLINE# self . assertStatusCode ( response , 501 )