comparison rhodecode/tests/functional/test_login.py @ 1530:04027bdb876c beta

Refactoring of model get functions
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 08 Oct 2011 02:02:25 +0200
parents 605707b50d7c
children bd604cf75c5a
comparison
equal deleted inserted replaced
1529:0b268dd369ec 1530:04027bdb876c
244 self.assertEqual(response.status, '302 Found') 244 self.assertEqual(response.status, '302 Found')
245 self.assertTrue(response.location.endswith(url('reset_password'))) 245 self.assertTrue(response.location.endswith(url('reset_password')))
246 246
247 # GOOD KEY 247 # GOOD KEY
248 248
249 key = User.by_username(username).api_key 249 key = User.get_by_username(username).api_key
250 250
251 response = self.app.get(url(controller='login', 251 response = self.app.get(url(controller='login',
252 action='password_reset_confirmation', 252 action='password_reset_confirmation',
253 key=key)) 253 key=key))
254 self.assertEqual(response.status, '302 Found') 254 self.assertEqual(response.status, '302 Found')