'Update should succeed for r/w dbs'

@ddt.data((ModuleStoreEnum.Type.mongo, 7, 5), (ModuleStoreEnum.Type.split, 3, 2))
@ddt.unpack
def test_update_item(self, default_ms, max_find, max_send):

    self.initdb(default_ms)
    self._create_block_hierarchy()
    problem = self.store.get_item(self.problem_x1a_1)
    self.assertNotEqual(problem.max_attempts, 2, 'Default    changed    making    test    meaningless')
    problem.max_attempts = 2
    with check_mongo_calls(max_find, max_send):
        problem = self.store.update_item(problem, self.user_id)
    self.assertEqual(problem.max_attempts, 2, "Update    didn't    persist")
