Changeset - f17e001cc6cc
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-07-01 18:06:56
marcin@python-works.com
better error message in checkSession in tests
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/tests/__init__.py
Show inline comments
 
@@ -154,7 +154,11 @@ class TestController(TestCase):
 

	
 
    def _get_logged_user(self):
 
        return User.get_by_username(self._logged_username)
 

	
 
    def checkSessionFlash(self, response, msg):
 
        self.assertTrue('flash' in response.session)
 
        self.assertTrue(msg in response.session['flash'][0][1])
 
        if not msg in response.session['flash'][0][1]:
 
            self.fail(
 
                'msg `%s` not found in session flash: got `%s` instead' % (
 
                      msg, response.session['flash'][0][1])
 
            )
0 comments (0 inline, 0 general)