def test_change_password_too_long():
    auth, app, user = _get_flask_app()
    client = app.test_client()
    auth.login(user)
    csrf_token = auth.get_csrf_token()

    HUGE_PASSWORD = 'x' * 5000
    r = client.post(auth.url_change_password, data=dict(
        password='foobar', np1=HUGE_PASSWORD, np2=HUGE_PASSWORD, _csrf_token=csrf_token))
    data = to_unicode(r.data)
    assert data in u'<!-- ERROR TOO LONG -->'
dataset/ETHPy150Open jpscaletti/authcode/tests/test_views.py/test_change_password_too_long/swapped operands of `in`