def test_connection_invalidated(self, characteristic_fixture):
    (engine, connection) = characteristic_fixture
    conn = engine.connect()
    c2 = conn.execution_options(foo='new_value')
    eq_(connection.foo, 'new_value')
    c2.invalidate()
    c2.connection
    eq_(connection.foo, 'original_value')
def test_connection_invalidated(self, characteristic_fixture):
    (engine, connection) = characteristic_fixture
    conn = engine.connect()
    c2 = conn.execution_options(foo='new_value')
    eq_(connection.foo, 'new_value')
    c2.invalidate()
    c2.connection
    eq_(connection.foo, 'original_value')