diff --git a/rhodecode/tests/functional/test_summary.py b/rhodecode/tests/functional/test_summary.py --- a/rhodecode/tests/functional/test_summary.py +++ b/rhodecode/tests/functional/test_summary.py @@ -13,12 +13,16 @@ class TestSummaryController(TestControll repo_name=HG_REPO)) #repo type - response.mustcontain("""Mercurial """) - response.mustcontain("""public """) + response.mustcontain( + """Mercurial """ + ) + response.mustcontain( + """public """ + ) #codes stats self._enable_stats() @@ -26,15 +30,15 @@ class TestSummaryController(TestControll invalidate_cache('get_repo_cached_%s' % HG_REPO) response = self.app.get(url(controller='summary', action='index', repo_name=HG_REPO)) - - self.assertTrue("""var data = {"py": {"count": 42, "desc": """ - """["Python"]}, "rst": {"count": 11, "desc": """ - """["Rst"]}, "sh": {"count": 2, "desc": ["Bash"]}, """ - """"makefile": {"count": 1, "desc": ["Makefile", """ - """"Makefile"]}, "cfg": {"count": 1, "desc": ["Ini"]},""" - """ "css": {"count": 1, "desc": ["Css"]}, "bat": """ - """{"count": 1, "desc": ["Batch"]}};""" - in response.body) + response.mustcontain( + """var data = [["py", {"count": 42, "desc": ["Python"]}], """ + """["rst", {"count": 11, "desc": ["Rst"]}], """ + """["sh", {"count": 2, "desc": ["Bash"]}], """ + """["makefile", {"count": 1, "desc": ["Makefile", "Makefile"]}],""" + """ ["cfg", {"count": 1, "desc": ["Ini"]}], """ + """["css", {"count": 1, "desc": ["Css"]}], """ + """["bat", {"count": 1, "desc": ["Batch"]}]];""" + ) # clone url... response.mustcontain("""""")