def test_csrf_disabled(self):

        self.app.config['WTF_CSRF_ENABLED'] = False

        response = self.client.post("/", data={"name": "danny"})
        assert b'DANNY' in response.data
dataset/ETHPy150Open lepture/flask-wtf/tests/test_validation.py/TestCSRF.test_csrf_disabled/original