diff --git a/rhodecode/tests/functional/test_changeset_comments.py b/rhodecode/tests/functional/test_changeset_comments.py --- a/rhodecode/tests/functional/test_changeset_comments.py +++ b/rhodecode/tests/functional/test_changeset_comments.py @@ -40,8 +40,8 @@ class TestChangeSetCommentsController(Te repo_name=HG_REPO, revision=rev)) # test DB self.assertEqual(ChangesetComment.query().count(), 1) - self.assertTrue('''
%s ''' - '''comment(s) (0 inline)
''' % 1 in response.body) + response.mustcontain('''
%s comment ''' + '''(0 inline)
''' % 1) self.assertEqual(Notification.query().count(), 1) self.assertEqual(ChangesetComment.query().count(), 1) @@ -76,7 +76,7 @@ class TestChangeSetCommentsController(Te #test DB self.assertEqual(ChangesetComment.query().count(), 1) response.mustcontain( - '''
0 comment(s)''' + '''
0 comments''' ''' (%s inline)
''' % 1 ) response.mustcontain( @@ -115,8 +115,8 @@ class TestChangeSetCommentsController(Te repo_name=HG_REPO, revision=rev)) # test DB self.assertEqual(ChangesetComment.query().count(), 1) - self.assertTrue('''
%s ''' - '''comment(s) (0 inline)
''' % 1 in response.body) + response.mustcontain('''
%s ''' + '''comment (0 inline)
''' % 1) self.assertEqual(Notification.query().count(), 2) users = [x.user.username for x in UserNotification.query().all()] @@ -148,5 +148,5 @@ class TestChangeSetCommentsController(Te response = self.app.get(url(controller='changeset', action='index', repo_name=HG_REPO, revision=rev)) - self.assertTrue('''
0 comment(s)''' - ''' (0 inline)
''' in response.body) + response.mustcontain('''
0 comments''' + ''' (0 inline)
''')