#NEWLINE# def test_bulk_creates_project_target_not_nested( self ) : #NEWLINE# #INDENT# payload = { #NEWLINE# #INDENT# 'data' : [ { #NEWLINE# #INDENT# 'type' : 'node_links' , #NEWLINE# 'target_node_id' : self . private_pointer_project . _id , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . app . post_json_api ( self . collection_url , payload , auth = self . user_two . auth , expect_errors = True , bulk = True ) #NEWLINE# assert_equal ( res . status_code , 400 ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'source' ] [ 'pointer' ] , '/data/relationships' ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'detail' ] , 'Request must include /data/relationships.' )