aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/tests/__init__.py
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2011-06-14 09:38:23 +0200
committerMarcin Kuzminski <marcin@python-works.com>2011-06-14 09:38:23 +0200
commitf97bc472fcfe1cdee0cd6f5a59fd892c6044fdf5 (patch)
treeb4556c9ff61066683734b0a3710c3ea29a4f579c /rhodecode/tests/__init__.py
parent074d1db1300dbbf13ffdef09a9009f262da40fca (diff)
Added CheckSessionFlash into init.
Added repo_groups_test controller. Renamed users_groups test controller --HG-- branch : beta rename : rhodecode/tests/functional/test_users_groups.py => rhodecode/tests/functional/test_admin_users_groups.py
Diffstat (limited to 'rhodecode/tests/__init__.py')
-rw-r--r--rhodecode/tests/__init__.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/rhodecode/tests/__init__.py b/rhodecode/tests/__init__.py
index a82fbeec..817663c3 100644
--- a/rhodecode/tests/__init__.py
+++ b/rhodecode/tests/__init__.py
@@ -27,7 +27,8 @@ log = logging.getLogger(__name__)
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 @@ class TestController(TestCase):
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])
+