@pytest.mark.settings(register_url='/custom_register', post_register_view='/post_register')
def test_custom_register_url(client):
    response = client.get('/custom_register')
    assert b"<h1>Register</h1>" in response.data

    data = dict(email='dude@lp.com',
                password='password',
                password_confirm='password',
                next='')

    response = client.post('/custom_register', data=data, follow_redirects=True)
    assert b'Post Register' in response.data
dataset/ETHPy150Open mattupstate/flask-security/tests/test_registerable.py/test_custom_register_url/original