def test_begin_close(self):
    with testing.db.connect() as connection:
        trans = connection.begin()
        assert (connection.connection._reset_agent is trans)
    assert (not trans.is_active)
def test_begin_close(self):
    with testing.db.connect() as connection:
        trans = connection.begin()
        assert (connection.connection._reset_agent is trans)
    assert (not trans.is_active)