#NEWLINE# def test_create_or_update_documents_verbose_failure( self ) : #NEWLINE# #INDENT# with vcr . use_cassette ( 'fixtures/create_or_update_documents_verbose_failure.yaml' ) : #NEWLINE# #INDENT# docs = [ { #NEWLINE# #INDENT# 'external_id' : '1' , #NEWLINE# 'fields' : [ { #NEWLINE# #INDENT# 'type' : 'string' , #NEWLINE# 'name' : 'title' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ] #NEWLINE# stati = self . client . create_or_update_documents_verbose ( self . engine , self . document_type , docs ) [ 'body' ] #NEWLINE# self . assertRegexpMatches ( docs [ 0 ] , '^Invalid field definition' )