#NEWLINE# def test_update( self ) : #NEWLINE# #INDENT# sub = SearchSubscription . objects . create ( user = self . user , dataset = self . dataset , query = '*' ) #NEWLINE# response = self . client . put ( ( '/api/1.0/search_subscription/%i/' % sub . id ) , data = json . dumps ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , content_type = 'application/json' , ** response . auth_headers ) #NEWLINE# self . assertEqual ( response . status_code , 405 )