details:
http://www.bx.psu.edu/hg/galaxy/rev/15fd40238cef
changeset: 3535:15fd40238cef
user: rc
date: Tue Mar 16 09:50:13 2010 -0400
description:
Fixes user info functional tests broken in changeset 3529:96ec861b4b6e
diffstat:
test/base/twilltestcase.py | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diffs (48 lines):
diff -r 447c059a096a -r 15fd40238cef test/base/twilltestcase.py
--- a/test/base/twilltestcase.py Mon Mar 15 15:06:14 2010 -0400
+++ b/test/base/twilltestcase.py Tue Mar 16 09:50:13 2010 -0400
@@ -806,17 +806,18 @@
self.visit_page(
"user/create?user_info_select=%i&admin_view=False" % user_info_form_id )
else:
self.visit_page( "user/create?admin_view=False" )
+ print self.write_temp_file( self.last_page() )
self.check_page_for_string( "Create account" )
- tc.fv( "1", "email", email )
- tc.fv( "1", "password", password )
- tc.fv( "1", "confirm", password )
- tc.fv( "1", "username", username )
+ tc.fv( "2", "email", email )
+ tc.fv( "2", "password", password )
+ tc.fv( "2", "confirm", password )
+ tc.fv( "2", "username", username )
if user_info_forms == 'multiple':
self.check_page_for_string( "User type" )
for index, info_value in enumerate(user_info_values):
- tc.fv( "1", "field_%i" % index, info_value )
+ tc.fv( "2", "field_%i" % index, info_value )
tc.submit( "create_user_button" )
- self.check_page_for_string( "now logged in as %s" % email )
+ self.check_page_for_string( "ogged in as %s" % email )
def create_user_with_info_as_admin( self, email, password, username, user_info_forms,
user_info_form_id, user_info_values ):
'''
This method registers a new user and also provides use info as an admin
@@ -827,14 +828,14 @@
else:
self.visit_page( "admin/users?operation=create" )
self.check_page_for_string( "Create account" )
- tc.fv( "1", "email", email )
- tc.fv( "1", "password", password )
- tc.fv( "1", "confirm", password )
- tc.fv( "1", "username", username )
+ tc.fv( "2", "email", email )
+ tc.fv( "2", "password", password )
+ tc.fv( "2", "confirm", password )
+ tc.fv( "2", "username", username )
if user_info_forms == 'multiple':
self.check_page_for_string( "User type" )
for index, info_value in enumerate(user_info_values):
- tc.fv( "1", "field_%i" % index, info_value )
+ tc.fv( "2", "field_%i" % index, info_value )
tc.submit( "create_user_button" )
self.check_page_for_string( "Created new user account (%s)" % email )
def edit_login_info( self, new_email, new_username ):