def METHOD_NAME(self):
    self.app.config['PI_UI_DEACTIVATED'] = True
    with self.app.test_request_context('/', method='GET'):
        res = self.app.full_dispatch_request()
        self.assertTrue(res.status_code == 200, res)
        self.assertEqual(res.mimetype, 'text/html', res)
        self.assertTrue(b"The privacyIDEA WebUI is deactivated." in res.data)
    self.app.config['PI_UI_DEACTIVATED'] = False