#NEWLINE# def get_pre_hooks( self , cluster ) : #NEWLINE# #INDENT# with mock . patch ( 'nailgun.plugins.adapters.glob' ) as glob : #NEWLINE# #INDENT# glob . glob . return_value = [ '/some/path' ] #NEWLINE# resp = self . app . get ( base . reverse ( 'DefaultPrePluginsHooksInfo' , { #NEWLINE# #INDENT# 'cluster_id' : cluster . id , #NEWLINE# #UNINDENT# } ) , headers = self . default_headers , expect_errors = True ) #NEWLINE# #UNINDENT# return resp