#NEWLINE# @ patch ( 'nefertari.elasticsearch.ES.prep_bulk_documents' ) #NEWLINE# @ patch ( 'nefertari.elasticsearch.ES.process_chunks' ) #NEWLINE# def test_bulk_no_prepared_docs( self , mock_proc , mock_prep ) : #NEWLINE# #INDENT# obj = es . ES ( 'Foo' , 'foondex' , chunk_size = 1 ) #NEWLINE# mock_prep . return_value = [ ] #NEWLINE# obj . _bulk ( 'myaction' , [ 'a' ] ) #NEWLINE# mock_prep . assert_called_once_with ( 'myaction' , [ 'a' ] ) #NEWLINE# assert ( not obj . called )