#NEWLINE# def test_bulk_update_collections_send_dictionary_not_list( self ) : #NEWLINE# #INDENT# res = self . app . put_json_api ( res . url , { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'id' : self . collection . _id , #NEWLINE# 'type' : 'nodes' , #NEWLINE# 'attributes' : { #NEWLINE# #INDENT# 'title' : self . new_title , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , auth = self . user . auth , expect_errors = True , bulk = True ) #NEWLINE# assert_equal ( res . status_code , 400 ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'detail' ] , 'Expected a list of items but got type "dict".' )