'test deleting an item'

def _test_deleting_item(self, store):

    self.publish_item(store, self.vertical.location)
    self.reindex_course(store)
    response = self.search()
    self.assertEqual(response['total'], 4)
    self.delete_item(store, self.html_unit.location)
    self.reindex_course(store)
    response = self.search()
    self.assertEqual(response['total'], 4)
    self.publish_item(store, self.vertical.location)
    self.reindex_course(store)
    response = self.search()
    self.assertEqual(response['total'], 3)
