Mercurial > kallithea
diff rhodecode/tests/functional/test_forks.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 | a8f2d78d14ea |
children | ffd45b185016 |
line wrap: on
line diff
--- a/rhodecode/tests/functional/test_forks.py Sun Mar 31 21:31:36 2013 +0200 +++ b/rhodecode/tests/functional/test_forks.py Sun Mar 31 21:44:27 2013 +0200 @@ -27,7 +27,7 @@ response = self.app.get(url(controller='forks', action='forks', repo_name=repo_name)) - self.assertTrue("""There are no forks yet""" in response.body) + response.mustcontain("""There are no forks yet""") def test_no_permissions_to_fork(self): usr = self.log_user(TEST_USER_REGULAR_LOGIN, @@ -135,7 +135,7 @@ response = self.app.get(url(controller='summary', action='index', repo_name=fork_name)) - self.assertTrue('Fork of %s' % repo_name in response.body) + response.mustcontain('Fork of %s' % repo_name) def test_zz_fork_permission_page(self): usr = self.log_user(self.username, self.password)['user_id']