'Don\'t index documents without approved revisions'

def test_wiki_no_revisions(self):

    doc = DocumentFactory()
    self.refresh()
    eq_(DocumentMappingType.search().count(), 0)
    RevisionFactory(document=doc, is_approved=False)
    self.refresh()
    eq_(DocumentMappingType.search().count(), 0)
