def test_remove_admin(self):
        user = make_user('foo', 'bar', False)
        user.admin = True
        self.db.add(user)
        transaction.commit()
        self.access.set_user_admin('foo', False)
        transaction.commit()
        self.db.add(user)
        self.assertFalse(user.admin)
Can demote an admin to normal user
dataset/ETHPy150Open mathcamp/pypicloud/tests/test_access_backends.py/TestSQLBackend.test_remove_admin