def test_autobegin_rollback(self):
    users = self.tables.users
    with testing.db.connect() as conn:
        conn.execute(users.insert(), {'user_id': 1, 'user_name': 'name'})
        conn.rollback()
        eq_(conn.scalar(select(func.count(1)).select_from(users)), 0)
def test_autobegin_rollback(self):
    users = self.tables.users
    with testing.db.connect() as conn:
        conn.execute(users.insert(), {'user_id': 1, 'user_name': 'name'})
        conn.rollback()
        eq_(conn.scalar(select(func.count(1)).select_from(users)), 0)