def test_retains_through_options(self, local_connection):
    connection = local_connection
    users = self.tables.users
    transaction = connection.begin()
    connection.execute(users.insert(), user_id=1, user_name='user1')
    conn2 = connection.execution_options(dummy=True)
    conn2.execute(users.insert(), user_id=2, user_name='user2')
    transaction.rollback()
    eq_(connection.exec_driver_sql('select count(*) from users').scalar(), 0)
def test_retains_through_options(self, local_connection):
    connection = local_connection
    users = self.tables.users
    transaction = connection.begin()
    connection.execute(users.insert(), user_id=1, user_name='user1')
    conn2 = connection.execution_options(dummy=True)
    conn2.execute(users.insert(), user_id=2, user_name='user2')
    transaction.rollback()
    eq_(connection.exec_driver_sql('select count(*) from users').scalar(), 0)