def test_write_write_rollback_read_first_value(self):
        with local_db.Transaction() as tx:
            tx.execute('INSERT INTO tests VALUES (:k, :v)', k='foo', v='bar')
        try:
            with local_db.Transaction() as tx:
                tx.execute('UPDATE tests SET value=:v WHERE key=:k',
                           k='foo', v='baz')
                raise RuntimeError()
        except __HOLE__:
            pass
        with local_db.Transaction() as tx:
            row = tx.query_one('SELECT value FROM tests WHERE key=:k', k='foo')
            self.assertEqual('bar', row['value'])
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/tests/lib/utils/test_local_db.py/LocalDbTestCase.test_write_write_rollback_read_first_value