#NEWLINE# def test_bulk_creates_node_pointer_no_type( self ) : #NEWLINE# #INDENT# payload = { #NEWLINE# #INDENT# 'data' : [ { #NEWLINE# #INDENT# 'relationships' : { #NEWLINE# #INDENT# 'nodes' : { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'type' : 'nodes' , #NEWLINE# 'id' : self . user_two_collection . _id , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . app . post_json_api ( self . collection_url , payload , auth = self . user . auth , expect_errors = True , bulk = True ) #NEWLINE# assert_equal ( res . status_code , 400 ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'detail' ] , 'This field may not be null.' ) #NEWLINE# assert_equal ( payload . json [ 'errors' ] [ 0 ] [ 'source' ] [ 'pointer' ] , '/data/0/type' )