#NEWLINE# def test_generate_hooks_is_not_supported_since_90( self ) : #NEWLINE# #INDENT# self . env . create ( nodes_kwargs = [ { #NEWLINE# #INDENT# 'roles' : [ 'controller' ] , #NEWLINE# 'pending_addition' : True , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'roles' : [ 'compute' ] , #NEWLINE# 'pending_addition' : True , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'roles' : [ 'cinder' ] , #NEWLINE# 'pending_addition' : True , #NEWLINE# #UNINDENT# } ] , release_kwargs = { #NEWLINE# #INDENT# 'version' : 'mitaka-9.0' , #NEWLINE# 'operating_system' : consts . RELEASE_OS . ubuntu , #NEWLINE# #UNINDENT# } ) #NEWLINE# resp = self . get_pre_hooks ( self . env . clusters [ ( - 1 ) ] ) #NEWLINE# self . assertEqual ( 405 , resp . status_code ) #NEWLINE# resp = self . get_post_hooks ( self . env . clusters [ ( - 1 ) ] ) #NEWLINE# self . assertEqual ( 405 , resp . status_code )