@testing.requires.savepoints
def test_begin_nested_close(self):
    with testing.db.connect() as connection:
        trans = connection.begin_nested()
        assert (connection.connection._reset_agent is connection._transaction)
    assert (not trans.is_active)
@testing.requires.savepoints
def test_begin_nested_close(self):
    with testing.db.connect() as connection:
        trans = connection.begin_nested()
        assert (connection.connection._reset_agent is connection._transaction)
    assert (not trans.is_active)