def test_engine_param_stays(self, characteristic_fixture):
    (engine, connection) = characteristic_fixture
    foo_level = engine.dialect.get_foo(engine.connect().connection)
    new_level = 'new_level'
    ne_(foo_level, new_level)
    eng = engine.execution_options(foo=new_level)
    eq_(eng.dialect.get_foo(eng.connect().connection), new_level)
    conn = eng.connect()
    eq_(eng.dialect.get_foo(conn.connection), new_level)
    conn.close()
    conn = eng.connect()
    eq_(eng.dialect.get_foo(conn.connection), new_level)
    conn.close()
def test_engine_param_stays(self, characteristic_fixture):
    (engine, connection) = characteristic_fixture
    foo_level = engine.dialect.get_foo(engine.connect().connection)
    new_level = 'new_level'
    ne_(foo_level, new_level)
    eng = engine.execution_options(foo=new_level)
    eq_(eng.dialect.get_foo(eng.connect().connection), new_level)
    conn = eng.connect()
    eq_(eng.dialect.get_foo(conn.connection), new_level)
    conn.close()
    conn = eng.connect()
    eq_(eng.dialect.get_foo(conn.connection), new_level)
    conn.close()