Mercurial > kallithea
diff rhodecode/tests/__init__.py @ 1382:c310e1e1e757 beta
Added CheckSessionFlash into init.
Added repo_groups_test controller.
Renamed users_groups test controller
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 14 Jun 2011 09:38:23 +0200 |
parents | 9c0f5d558789 |
children | 04edf7622d91 |
line wrap: on
line diff
--- a/rhodecode/tests/__init__.py Mon Jun 13 18:04:42 2011 +0200 +++ b/rhodecode/tests/__init__.py Tue Jun 14 09:38:23 2011 +0200 @@ -27,7 +27,8 @@ import pylons.test __all__ = ['environ', 'url', 'TestController', 'TESTS_TMP_PATH', 'HG_REPO', - 'GIT_REPO', 'NEW_HG_REPO', 'NEW_GIT_REPO', 'HG_FORK', 'GIT_FORK', ] + 'GIT_REPO', 'NEW_HG_REPO', 'NEW_GIT_REPO', 'HG_FORK', 'GIT_FORK', + 'checkSessionFlash' ] # Invoke websetup with the current config file #SetupCommand('setup-app').run([config_file]) @@ -72,3 +73,10 @@ self.assertEqual(response.status, '302 Found') self.assertEqual(response.session['rhodecode_user'].username, username) return response.follow() + + + + def checkSessionFlash(self, response, msg): + self.assertTrue('flash' in response.session) + self.assertTrue(msg in response.session['flash'][0][1]) +