#NEWLINE# def test_user_cant_change_settings_type( self ) : #NEWLINE# #INDENT# self . client . force_authenticate ( user = self . users [ 'owner' ] ) #NEWLINE# payload = { #NEWLINE# #INDENT# 'name' : 'Test backend' , #NEWLINE# 'type' : 2 , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . patch ( self . _get_settings_url ( self . settings [ 'owned' ] ) , payload ) #NEWLINE# settings = ServiceSettings . objects . get ( uuid = self . settings [ 'owned' ] . uuid ) #NEWLINE# self . assertNotEqual ( settings . type , payload [ 'type' ] , response . data )