""" in response.body)
- self.assertTrue("""Small update at simplevcs app""" in response.body)
+ response.mustcontain("""
""")
+ response.mustcontain(
+ """
"""
+ )
+ response.mustcontain(
+ """
154:"""
+ """5e204e7583b9"""
+ )
+ response.mustcontain("""Small update at simplevcs app""")
- self.assertTrue("""
3""" in response.body)
+ response.mustcontain(
+ """
3
"""
+ )
#pagination
-
response = self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page':1})
response = self.app.get(url(controller='changelog', action='index',
@@ -37,25 +41,26 @@ class TestChangelogController(TestContro
response = self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page':6})
-
# Test response after pagination...
- self.assertTrue("""
"""
- in response.body)
- self.assertTrue("""
commit 64: 46ad32a4f974@2010-04-20"""
- """ 01:33:21"""in response.body)
+ response.mustcontain(
+ """
"""
+ )
+ response.mustcontain(
+ """
64:"""
+ """46ad32a4f974"""
+ )
- self.assertTrue("""
21"""in response.body)
- self.assertTrue("""
""" % HG_REPO in response.body)
+ response.mustcontain(
+ """
21
"""
+ )
-
-
- #def test_index_git(self):
- # self.log_user()
- # response = self.app.get(url(controller='changelog', action='index', repo_name=GIT_REPO))
+ response.mustcontain(
+ """
"""
+ """46ad32a4f974""" % HG_REPO
+ )