]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
Update functional tests for /user to incorporate new URLs.
authorEvan Broder <broder@mit.edu>
Fri, 19 Mar 2010 13:54:14 +0000 (09:54 -0400)
committerEvan Broder <broder@mit.edu>
Fri, 19 Mar 2010 13:54:51 +0000 (09:54 -0400)
bluechips/tests/functional/test_user.py

index c27983b97457ee6077f2788a63b9593a70439b47..96b0198cb2c862e2f253432689d7bbc7ff67b9d7 100644 (file)
@@ -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()