@@ -0,0 +1,1041 @@
+from flask import url_for%0Afrom flask_login import current_user%0A%0Afrom .conftest import logged_in, assert_logged_in, DEFAULT_USERNAME%0A%0A%0A@logged_in%0Adef test_change_password(db, client):%0A    new_password = DEFAULT_USERNAME + '1'%0A    resp = client.post(url_for('edit_own_user_profile'), follow_redirects=True,%0A                       data=dict(password=new_password, new_password=new_password, password_current=DEFAULT_USERNAME))%0A    assert resp.status_code == 200%0A%0A    resp = client.post(url_for('login'), follow_redirects=True,%0A                       data=dict(username=DEFAULT_USERNAME, password=new_password))%0A    assert_logged_in(resp)%0A    assert DEFAULT_USERNAME == current_user.name%0A%0A%0A@logged_in%0Adef test_invalid_password_length(db, client):%0A    resp = client.post(url_for('edit_own_user_profile'), follow_redirects=True,%0A                       data=dict(password='1234', new_password='1234', password_current=DEFAULT_USERNAME))%0A    assert b'Field must be between 16 and 64 characters long.' in resp.data%0A    assert resp.status_code == 200%0A

add profile tests