#NEWLINE# def test_create_node_link_no_target_formatting( self ) : #NEWLINE# #INDENT# url = ( self . private_url + 'node_links/' ) #NEWLINE# res = self . app . post_json_api ( url , { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'type' : 'node_links' , #NEWLINE# 'relationships' : { #NEWLINE# #INDENT# 'nodes' : { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'id' : '' , #NEWLINE# 'type' : 'nodes' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , auth = self . user . auth , expect_errors = True ) #NEWLINE# errors = res . json [ 'errors' ] #NEWLINE# assert isinstance ( errors , list ) #NEWLINE# assert_equal ( res . status_code , 400 ) #NEWLINE# assert_equal ( url . json [ 'errors' ] [ 0 ] [ 'source' ] , { #NEWLINE# #INDENT# 'pointer' : '/data/id' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'detail' ] , 'This field may not be blank.' )