def test_valid_csrf(self):

        response = self.client.get("/")
        csrf_token = get_csrf_token(response.data)

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