aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_edit.py
diff options
context:
space:
mode:
authortilly-Q <nattilypigeonfowl@gmail.com>2013-09-12 18:58:04 -0400
committertilly-Q <nattilypigeonfowl@gmail.com>2013-09-12 18:58:04 -0400
commit045fe0ee9d43aa825de6fbf14fe8fd48953d4eff (patch)
treee0743c13e20845a613ba8e4064cb1e0f10f54025 /mediagoblin/tests/test_edit.py
parenta02831687a6026b2baa0f971ecb3e594c3f415e2 (diff)
parent66cafc3b74d476710013efb46341b989028f3057 (diff)
downloadmediagoblin-045fe0ee9d43aa825de6fbf14fe8fd48953d4eff.tar.lz
mediagoblin-045fe0ee9d43aa825de6fbf14fe8fd48953d4eff.tar.xz
mediagoblin-045fe0ee9d43aa825de6fbf14fe8fd48953d4eff.zip
Merge branch 'master' into OPW-Moderation-Update
Conflicts: mediagoblin/db/migrations.py
Diffstat (limited to 'mediagoblin/tests/test_edit.py')
-rw-r--r--mediagoblin/tests/test_edit.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/tests/test_edit.py b/mediagoblin/tests/test_edit.py
index 8db8a00d..7b58cb9b 100644
--- a/mediagoblin/tests/test_edit.py
+++ b/mediagoblin/tests/test_edit.py
@@ -150,26 +150,26 @@ class TestUserEdit(object):
# Test email already in db
template.clear_test_template_context()
test_app.post(
- '/edit/account/', {
+ '/edit/email/', {
'new_email': 'chris@example.com',
'password': 'toast'})
# Check form errors
context = template.TEMPLATE_TEST_CONTEXT[
- 'mediagoblin/edit/edit_account.html']
+ 'mediagoblin/edit/change_email.html']
assert context['form'].new_email.errors == [
u'Sorry, a user with that email address already exists.']
# Test successful email change
template.clear_test_template_context()
res = test_app.post(
- '/edit/account/', {
+ '/edit/email/', {
'new_email': 'new@example.com',
'password': 'toast'})
res.follow()
# Correct redirect?
- assert urlparse.urlsplit(res.location)[2] == '/u/chris/'
+ assert urlparse.urlsplit(res.location)[2] == '/edit/account/'
# Make sure we get email verification and try verifying
assert len(mail.EMAIL_TEST_INBOX) == 1