From: Evan Broder Date: Fri, 19 Mar 2010 13:54:14 +0000 (-0400) Subject: Update functional tests for /user to incorporate new URLs. X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=fdfdb1390f7f4aa8155465d670416d18b382c126;hp=796b210ab8c55a5a2d5b7148160ecf366881fdb2;p=bluechips.git Update functional tests for /user to incorporate new URLs. --- diff --git a/bluechips/tests/functional/test_user.py b/bluechips/tests/functional/test_user.py index c27983b..96b0198 100644 --- a/bluechips/tests/functional/test_user.py +++ b/bluechips/tests/functional/test_user.py @@ -6,8 +6,8 @@ from bluechips.model import meta class TestUserController(TestController): - def test_index(self): - response = self.app.get(url_for(controller='user')) + def test_email(self): + response = self.app.get(url_for(controller='user', action='email')) # Test response... response.mustcontain('Email Notifications', 'User Settings') form = response.form @@ -20,7 +20,7 @@ class TestUserController(TestController): assert user.email == 'test@example.com' def test_clear_email(self): - response = self.app.get(url_for(controller='user')) + response = self.app.get(url_for(controller='user', action='email')) form = response.form form['new_email'] = '' response = form.submit().follow()