#NEWLINE# @ mock . patch ( 'sahara.service.api.v10.get_cluster' ) #NEWLINE# def test_public_cluster_update_from_another_tenant( self , get_cluster_p ) : #NEWLINE# #INDENT# cluster = tu . create_cluster ( 'cluster1' , 'tenant_2' , 'fake' , '0.1' , [ 'ng1' ] , is_public = True ) #NEWLINE# get_cluster_p . return_value = cluster #NEWLINE# with testtools . ExpectedException ( ex . UpdateFailedException ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# c_val . check_cluster_update ( cluster . id , { #NEWLINE# #INDENT# 'name' : 'new' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# except ex . UpdateFailedException as e : #NEWLINE# #INDENT# self . assert_created_in_another_tenant_exception ( e ) #NEWLINE# raise cluster