Changeset - 7d3d0a96e083
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-02-17 22:58:27
marcin@python-works.com
fixed registration test
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/tests/functional/test_login.py
Show inline comments
 
@@ -212,13 +212,13 @@ class TestLoginController(TestController
 
                                             'password_confirmation': password,
 
                                             'email': email,
 
                                             'firstname': name,
 
                                             'lastname': lastname,
 
                                             'admin': True})  # This should be overriden
 
        self.assertEqual(response.status, '302 Found')
 
        self.checkSessionFlash(response, 'You have successfully registered into rhodecode')
 
        self.checkSessionFlash(response, 'You have successfully registered into RhodeCode')
 

	
 
        ret = self.Session().query(User).filter(User.username == 'test_regular4').one()
 
        self.assertEqual(ret.username, username)
 
        self.assertEqual(check_password(password, ret.password), True)
 
        self.assertEqual(ret.email, email)
 
        self.assertEqual(ret.name, name)
0 comments (0 inline, 0 general)