'test updating an item'

def _test_updating_item(self, store):

    self.reindex_library(store)
    response = self.search()
    self.assertEqual(response['total'], 2)
    new_data = "I'm    new    data"
    self.html_unit1.data = new_data
    self.update_item(store, self.html_unit1)
    self.reindex_library(store)
    response = self.search()
    self.assertEqual(response['total'], 2)
    html_contents = [cont['html_content'] for cont in self._get_contents(response)]
    self.assertIn(new_data, html_contents)
