#NEWLINE# def test_bulk_create_no_attributes( self ) : #NEWLINE# #INDENT# payload = { #NEWLINE# #INDENT# 'data' : [ self . public_project , { #NEWLINE# #INDENT# 'type' : 'nodes' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . app . post_json_api ( self . url , payload , auth = self . user_one . auth , expect_errors = True , bulk = True ) #NEWLINE# assert_equal ( self . status_code , 400 ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'source' ] [ 'pointer' ] , '/data/attributes' ) #NEWLINE# res = self . app . get ( self . url , auth = self . user_one . auth ) #NEWLINE# assert_equal ( len ( res . json [ 'data' ] ) , 0 )