'Adding a revision should add it to the index.
Deleting should delete it.'

def test_add_and_delete(self):

    r = RevisionFactory()
    self.refresh()
    eq_(RevisionMetricsMappingType.search().count(), 1)
    r.delete()
    self.refresh()
    eq_(RevisionMetricsMappingType.search().count(), 0)
