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