diff --git a/rhodecode/tests/functional/test_admin_notifications.py b/rhodecode/tests/functional/test_admin_notifications.py --- a/rhodecode/tests/functional/test_admin_notifications.py +++ b/rhodecode/tests/functional/test_admin_notifications.py @@ -22,8 +22,7 @@ class TestNotificationsController(TestCo u1 = u1.user_id response = self.app.get(url('notifications')) - self.assertTrue('''
No notifications here yet
''' - in response.body) + response.mustcontain('
No notifications here yet
') cur_user = self._get_logged_user() @@ -32,7 +31,7 @@ class TestNotificationsController(TestCo recipients=[cur_user]) self.Session().commit() response = self.app.get(url('notifications')) - self.assertTrue(u'test_notification_1' in response.body) + response.mustcontain(u'test_notification_1') # def test_index_as_xml(self): # response = self.app.get(url('formatted_notifications', format='xml'))