#NEWLINE# def test_bulk_delete_limits( self ) : #NEWLINE# #INDENT# new_payload = { #NEWLINE# #INDENT# 'data' : ( [ { #NEWLINE# #INDENT# 'id' : self . collection_three . _id , #NEWLINE# 'type' : 'nodes' , #NEWLINE# #UNINDENT# } ] * 101 ) , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . app . delete_json_api ( res . url , new_payload , auth = self . user_one . auth , expect_errors = True , bulk = True ) #NEWLINE# assert_equal ( res . status_code , 400 ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'detail' ] , 'Bulk operation limit is 100, got 101.' ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'source' ] [ 'pointer' ] , '/data' )