def test_connection_invalidated(self):
    eng = testing_engine()
    conn = eng.connect()
    c2 = conn.execution_options(isolation_level=self._non_default_isolation_level())
    c2.invalidate()
    c2.connection
    eq_(c2.get_isolation_level(), self._default_isolation_level())
def test_connection_invalidated(self):
    eng = testing_engine()
    conn = eng.connect()
    c2 = conn.execution_options(isolation_level=self._non_default_isolation_level())
    c2.invalidate()
    c2.connection
    eq_(c2.get_isolation_level(), self._default_isolation_level())