#NEWLINE# def test_bulk_create_incorrect_type( self ) : #NEWLINE# #INDENT# payload = { #NEWLINE# #INDENT# 'data' : [ self . collection , { #NEWLINE# #INDENT# 'type' : 'Incorrect type.' , #NEWLINE# 'attributes' : { #NEWLINE# #INDENT# 'title' : self . title , #NEWLINE# #UNINDENT# } , #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 ( res . status_code , 409 ) #NEWLINE# res = self . app . get ( self . url , auth = self . user_one . auth ) #NEWLINE# assert_equal ( len ( res . json [ 'data' ] ) , 0 )