##// END OF EJS Templates
extended safe_str and safe_unicode with chardet fallback....
extended safe_str and safe_unicode with chardet fallback. - if chardet is installed and utf-8 decoding fails we'll fallback to detect encoding

File last commit:

r1481:605707b5 beta
r1490:76b358f8 beta
Show More
test_home.py
22 lines | 1.1 KiB | text/x-python | PythonLexer
Refactor codes for scm model...
r691 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
test fixes for vcs update
r1481 self.assertTrue('ADD NEW REPOSITORY' in response.body)
self.assertTrue('href="/%s/summary"' % HG_REPO in response.body)
Refactor codes for scm model...
r691 # Test response...
tests update
r875
test fixes for vcs update
r1481 self.assertTrue("""<img class="icon" title="Mercurial repository" """
"""alt="Mercurial repository" src="/images/icons/hg"""
"""icon.png"/>""" in response.body)
self.assertTrue("""<img class="icon" title="public repository" """
"""alt="public repository" src="/images/icons/lock_"""
"""open.png"/>""" in response.body)
self.assertTrue("""<a title="Marcin Kuzminski &lt;marcin@python-works.com&gt;
merge" class="tooltip" href="/vcs_test_hg/changeset/27cd5cce30c96924232dffcd24178a07ffeb5dfc">r173:27cd5cce30c9</a>"""
in response.body)