Fix Unit Tests for new password changing
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Thu, 5 Jan 2012 13:54:03 +0000 (14:54 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Thu, 5 Jan 2012 13:54:03 +0000 (14:54 +0100)
mediagoblin/tests/test_edit.py

index 0cf71e9ba6db40b20175f99a46f179c53b7bcb46..55f34b42f1903037ba46e26cd1a996104d21c8cf 100644 (file)
@@ -34,12 +34,10 @@ def test_change_password(test_app):
     # test that the password can be changed
     # template.clear_test_template_context()
     test_app.post(
-        '/edit/profile/', {
-            'bio': u'',
-            'url': u'',
+        '/edit/account/', {
             'old_password': 'toast',
             'new_password': '123456',
-            'confirm_password': '123456'})
+            })
 
     # test_user has to be fetched again in order to have the current values
     test_user = mg_globals.database.User.one({'username': 'chris'})
@@ -50,12 +48,10 @@ def test_change_password(test_app):
     # is wrong
     # template.clear_test_template_context()
     test_app.post(
-        '/edit/profile/', {
-            'bio': u'',
-            'url': u'',
+        '/edit/account/', {
             'old_password': 'toast',
             'new_password': '098765',
-            'confirm_password': '098765'})
+            })
 
     test_user = mg_globals.database.User.one({'username': 'chris'})