# HG changeset patch # User Marcin Kuzminski # Date 1291682518 -3600 # Node ID 65332500612d25b7df8f129f5b16af96f8964e60 # Parent e8b5be26fb78923b0ce0dcf2555a9d73c5a53a49 fixed tests diff -r e8b5be26fb78 -r 65332500612d rhodecode/tests/functional/test_changelog.py --- a/rhodecode/tests/functional/test_changelog.py Tue Dec 07 01:33:31 2010 +0100 +++ b/rhodecode/tests/functional/test_changelog.py Tue Dec 07 01:41:58 2010 +0100 @@ -6,11 +6,13 @@ self.log_user() response = self.app.get(url(controller='changelog', action='index', repo_name=HG_REPO)) + print response.body assert """
""" in response.body, 'wrong info about number of changes' + assert """
commit 154: 5e204e7583b9@2010-08-10 01:18:46
""" in response.body , 'no info on this commit' assert """Small update at simplevcs app""" in response.body, 'missing info about commit message' - assert """0""" in response.body, 'wrong info about removed nodes' - assert """2""" in response.body, 'wrong info about changed nodes' - assert """1""" in response.body, 'wrong info about added nodes' + assert """0""" in response.body, 'wrong info about removed nodes' + assert """2""" in response.body, 'wrong info about changed nodes' + assert """1""" in response.body, 'wrong info about added nodes' #pagination @@ -22,11 +24,11 @@ response = self.app.get(url(controller='changelog', action='index', repo_name=HG_REPO), {'page':6}) # Test response after pagination... - + print response.body assert """
commit 64: 46ad32a4f974@2010-04-20 00:33:21
"""in response.body, 'wrong info about commit 64' - assert """1"""in response.body, 'wrong info about number of removed' - assert """13"""in response.body, 'wrong info about number of changes' - assert """20"""in response.body, 'wrong info about number of added' + assert """1"""in response.body, 'wrong info about number of removed' + assert """13"""in response.body, 'wrong info about number of changes' + assert """20"""in response.body, 'wrong info about number of added' assert """""" % HG_REPO in response.body, 'wrong info about commit 64 is a merge'