aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/web_editor.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/tests/web_editor.py b/python/tests/web_editor.py
index 58b21ddf..0d0679bb 100644
--- a/python/tests/web_editor.py
+++ b/python/tests/web_editor.py
@@ -22,3 +22,11 @@ def test_change_username(app_admin):
assert rv.status_code == 200
rv = app_admin.get('/auth/account')
assert b'admin-tmp' not in rv.data
+
+def test_username_redirect(app_admin):
+
+ rv = app_admin.get('/u/admin')
+ assert rv.status_code == 302
+
+ rv = app_admin.get('/u/bogus-not-registered')
+ assert rv.status_code == 404