Mercurial > kallithea
changeset 2194:ec6691dd9e94 beta
fixed tests
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 15 Apr 2012 21:26:32 +0200 |
parents | 3ea397063fc7 |
children | b5f03c1d2153 |
files | rhodecode/tests/functional/test_changeset_comments.py |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/tests/functional/test_changeset_comments.py Sun Apr 15 20:30:17 2012 +0200 +++ b/rhodecode/tests/functional/test_changeset_comments.py Sun Apr 15 21:26:32 2012 +0200 @@ -75,11 +75,15 @@ repo_name=HG_REPO, revision=rev)) #test DB self.assertEqual(ChangesetComment.query().count(), 1) - self.assertTrue('''<div class="comments-number">0 comment(s)''' - ''' (%s inline)</div>''' % 1 in response.body) - self.assertTrue('''<div class="inline-comment-placeholder-line"''' - ''' line="n1" target_id="vcswebsimplevcsviews''' - '''repositorypy">''' in response.body) + response.mustcontain( + '''<div class="comments-number">0 comment(s)''' + ''' (%s inline)</div>''' % 1 + ) + response.mustcontain( + '''<div style="display:none" class="inline-comment-placeholder" ''' + '''path="vcs/web/simplevcs/views/repository.py" ''' + '''target_id="vcswebsimplevcsviewsrepositorypy">''' + ) self.assertEqual(Notification.query().count(), 1) self.assertEqual(ChangesetComment.query().count(), 1)