from rhodecode.tests import *
class TestTagsController(TestController):
def test_index(self):
self.log_user()
response = self.app.get(url(controller='tags', action='index', repo_name=HG_REPO))
assert """tip""" % HG_REPO in response.body, 'wrong info about tip tag'
assert """0.1.4""" % HG_REPO in response.body, 'wrong info about 0.1.4 tag'
assert """0.1.3""" % HG_REPO in response.body, 'wrong info about 0.1.3 tag'
assert """0.1.2""" % HG_REPO in response.body, 'wrong info about 0.1.2 tag'
assert """0.1.1""" % HG_REPO in response.body, 'wrong info about 0.1.1 tag'
# Test response...