#NEWLINE# @ patch ( 'nefertari.elasticsearch.ES' ) #NEWLINE# def test_includeme( self , mock_es ) : #NEWLINE# #INDENT# config = Mock ( ) #NEWLINE# config . registry . settings = { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } #NEWLINE# es . includeme ( mock_es ) #NEWLINE# mock_es . setup . assert_called_once_with ( { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } )