Mercurial > kallithea
diff rhodecode/tests/functional/test_admin_notifications.py @ 3646:63e49418a4cc beta
Use only mustcontain for testing response body
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 31 Mar 2013 21:44:27 +0200 |
parents | a45191e7c7bb |
children | d7488551578e |
line wrap: on
line diff
--- a/rhodecode/tests/functional/test_admin_notifications.py Sun Mar 31 21:31:36 2013 +0200 +++ b/rhodecode/tests/functional/test_admin_notifications.py Sun Mar 31 21:44:27 2013 +0200 @@ -22,8 +22,7 @@ u1 = u1.user_id response = self.app.get(url('notifications')) - self.assertTrue('''<div class="table">No notifications here yet</div>''' - in response.body) + response.mustcontain('<div class="table">No notifications here yet</div>') cur_user = self._get_logged_user() @@ -32,7 +31,7 @@ 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'))