from rhodecode.tests import *
class TestHomeController(TestController):
def test_index(self):
self.log_user()
response = self.app.get(url(controller='home', action='index'))
#if global permission is set
self.assertTrue('ADD NEW REPOSITORY' in response.body)
self.assertTrue('href="/%s/summary"' % HG_REPO in response.body)
# Test response...
self.assertTrue("""""" in response.body)
self.assertTrue("""""" in response.body)
self.assertTrue("""r173:27cd5cce30c9"""
in response.body)