def METHOD_NAME(self):
    def hook(conn):
        conn.execute(self.db.model.object_state.insert(),
                     objectid=10, name='x', value_json='22')
    self.db.state._test_timing_hook = hook
    yield self.insert_test_data([
        fakedb.Object(id=10, name='-', class_name='-'),
    ])
    yield self.db.state.setState(10, 'x', [1, 2])
    def thd(conn):
        q = self.db.model.object_state.select()
        rows = conn.execute(q).fetchall()
        self.assertEqual(
            [(r.objectid, r.name, r.value_json) for r in rows],
            [(10, 'x', '22')])
    yield self.db.pool.do(thd)