diff rhodecode/tests/functional/test_admin_settings.py @ 3640:4f80df0d45c8 beta

unified flash msg tests
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 30 Mar 2013 16:17:56 +0100
parents d5e42c00f3c1
children 63e49418a4cc
line wrap: on
line diff
--- a/rhodecode/tests/functional/test_admin_settings.py	Sat Mar 30 12:22:07 2013 +0100
+++ b/rhodecode/tests/functional/test_admin_settings.py	Sat Mar 30 16:17:56 2013 +0100
@@ -85,8 +85,7 @@
                                                  rhodecode_ga_code=new_ga_code
                                                  ))
 
-        self.assertTrue('Updated application settings' in
-                        response.session['flash'][0][1])
+        self.checkSessionFlash(response, 'Updated application settings')
         self.assertEqual(RhodeCodeSetting
                         .get_app_settings()['rhodecode_ga_code'], new_ga_code)