from rhodecode.tests import *
class TestTagsController(TestController):
def test_index_hg(self):
self.log_user()
response = self.app.get(url(controller='tags', action='index', repo_name=HG_REPO))
response.mustcontain("""tip""" % HG_REPO)
response.mustcontain("""v0.2.0""" % HG_REPO)
response.mustcontain("""v0.1.11""" % HG_REPO)
response.mustcontain("""v0.1.10""" % HG_REPO)
response.mustcontain("""v0.1.9""" % HG_REPO)
response.mustcontain("""v0.1.8""" % HG_REPO)
response.mustcontain("""v0.1.7""" % HG_REPO)
response.mustcontain("""v0.1.6""" % HG_REPO)
response.mustcontain("""v0.1.5""" % HG_REPO)
response.mustcontain("""v0.1.4""" % HG_REPO)
response.mustcontain("""v0.1.3""" % HG_REPO)
response.mustcontain("""v0.1.2""" % HG_REPO)
response.mustcontain("""v0.1.1""" % HG_REPO)
def test_index_git(self):
self.log_user()
response = self.app.get(url(controller='tags', action='index', repo_name=GIT_REPO))
response.mustcontain("""v0.2.2""" % GIT_REPO)
response.mustcontain("""v0.2.1""" % GIT_REPO)
response.mustcontain("""v0.2.0""" % GIT_REPO)
response.mustcontain("""v0.1.11""" % GIT_REPO)
response.mustcontain("""v0.1.10""" % GIT_REPO)
response.mustcontain("""v0.1.9""" % GIT_REPO)
response.mustcontain("""v0.1.8""" % GIT_REPO)
response.mustcontain("""v0.1.7""" % GIT_REPO)
response.mustcontain("""v0.1.6""" % GIT_REPO)
response.mustcontain("""v0.1.5""" % GIT_REPO)
response.mustcontain("""v0.1.4""" % GIT_REPO)
response.mustcontain("""v0.1.3""" % GIT_REPO)
response.mustcontain("""v0.1.2""" % GIT_REPO)
response.mustcontain("""v0.1.1""" % GIT_REPO)