'Test that es_search command doesn\'t fail'

@mock.patch.object(FakeLogger, '_out')
def test_search(self, _out):

    call_command('essearch', 'cupcakes')
    p = ProductFactory(title=u'firefox', slug=u'desktop')
    doc = DocumentFactory(title=u'cupcakes    rock', locale=u'en-US', category=10, products=[p])
    RevisionFactory(document=doc, is_approved=True)
    self.refresh()
    call_command('essearch', 'cupcakes')
