#NEWLINE# def test_update_no_id( self ) : #NEWLINE# #INDENT# res = self . app . put_json_api ( self . url , { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'type' : 'collections' , #NEWLINE# 'attributes' : { #NEWLINE# #INDENT# 'title' : self . new_title , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , auth = self . user . auth , expect_errors = True ) #NEWLINE# assert_equal ( self . status_code , 400 ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'detail' ] , 'This field may not be null.' ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'source' ] [ 'pointer' ] , '/data/id' )