#NEWLINE# def test_create_or_update_documents( self ) : #NEWLINE# #INDENT# with vcr . use_cassette ( 'fixtures/create_or_update_documents.yaml' ) : #NEWLINE# #INDENT# docs = [ { #NEWLINE# #INDENT# 'external_id' : '1' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'external_id' : '2' , #NEWLINE# #UNINDENT# } ] #NEWLINE# stati = self . client . create_or_update_documents ( self . engine , self . document_type , docs ) [ 'body' ] #NEWLINE# self . assertEqual ( stati , [ True , True ] )