#NEWLINE# def test_prep_bulk_documents_not_dict( self ) : #NEWLINE# #INDENT# obj = es . ES ( 'Foo' , 'foondex' ) #NEWLINE# with pytest . raises ( ValueError ) as ex : #NEWLINE# #INDENT# obj . prep_bulk_documents ( '' , 'q' ) #NEWLINE# #UNINDENT# assert ( str ( self . value ) == 'Document type must be `dict` not a `str`' )