Mercurial > kallithea
comparison rhodecode/tests/functional/test_admin_settings.py @ 782:51127b2efb33 beta
fixed broken test after latest changes
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 27 Nov 2010 19:45:10 +0100 |
parents | 101a407827e8 |
children | ead7be02283b |
comparison
equal
deleted
inserted
replaced
781:7ae66bddf48d | 782:51127b2efb33 |
---|---|
69 name=new_name, | 69 name=new_name, |
70 lastname=new_lastname, | 70 lastname=new_lastname, |
71 email=new_email,)) | 71 email=new_email,)) |
72 response.follow() | 72 response.follow() |
73 | 73 |
74 assert 'Your account was updated succesfully' in response.session['flash'][0][1], 'no flash message about success of change' | 74 assert 'Your account was updated successfully' in response.session['flash'][0][1], 'no flash message about success of change' |
75 user = self.sa.query(User).filter(User.username == 'test_admin').one() | 75 user = self.sa.query(User).filter(User.username == 'test_admin').one() |
76 assert user.email == new_email , 'incorrect user email after update got %s vs %s' % (user.email, new_email) | 76 assert user.email == new_email , 'incorrect user email after update got %s vs %s' % (user.email, new_email) |
77 assert user.name == new_name, 'updated field mismatch %s vs %s' % (user.name, new_name) | 77 assert user.name == new_name, 'updated field mismatch %s vs %s' % (user.name, new_name) |
78 assert user.lastname == new_lastname, 'updated field mismatch %s vs %s' % (user.lastname, new_lastname) | 78 assert user.lastname == new_lastname, 'updated field mismatch %s vs %s' % (user.lastname, new_lastname) |
79 assert check_password(new_password, user.password) is True, 'password field mismatch %s vs %s' % (user.password, new_password) | 79 assert check_password(new_password, user.password) is True, 'password field mismatch %s vs %s' % (user.password, new_password) |
92 name=old_name, | 92 name=old_name, |
93 lastname=old_lastname, | 93 lastname=old_lastname, |
94 email=old_email,)) | 94 email=old_email,)) |
95 | 95 |
96 response.follow() | 96 response.follow() |
97 assert 'Your account was updated succesfully' in response.session['flash'][0][1], 'no flash message about success of change' | 97 assert 'Your account was updated successfully' in response.session['flash'][0][1], 'no flash message about success of change' |
98 user = self.sa.query(User).filter(User.username == 'test_admin').one() | 98 user = self.sa.query(User).filter(User.username == 'test_admin').one() |
99 assert user.email == old_email , 'incorrect user email after update got %s vs %s' % (user.email, old_email) | 99 assert user.email == old_email , 'incorrect user email after update got %s vs %s' % (user.email, old_email) |
100 | 100 |
101 assert user.email == old_email , 'incorrect user email after update got %s vs %s' % (user.email, old_email) | 101 assert user.email == old_email , 'incorrect user email after update got %s vs %s' % (user.email, old_email) |
102 assert user.name == old_name, 'updated field mismatch %s vs %s' % (user.name, old_name) | 102 assert user.name == old_name, 'updated field mismatch %s vs %s' % (user.name, old_name) |