diff rhodecode/tests/functional/test_summary.py @ 1895:b7adbd5456c2 beta

test fixes for latest changes
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 13 Jan 2012 06:38:36 +0200
parents cf51bbfb120e
children 82a88013a3fd 402a96fcfa22
line wrap: on
line diff
--- a/rhodecode/tests/functional/test_summary.py	Fri Jan 13 04:58:14 2012 +0200
+++ b/rhodecode/tests/functional/test_summary.py	Fri Jan 13 06:38:36 2012 +0200
@@ -13,12 +13,16 @@
                                     repo_name=HG_REPO))
 
         #repo type
-        response.mustcontain("""<img style="margin-bottom:2px" class="icon" """
-                        """title="Mercurial repository" alt="Mercurial """
-                        """repository" src="/images/icons/hgicon.png"/>""")
-        response.mustcontain("""<img style="margin-bottom:2px" class="icon" """
-                        """title="public repository" alt="public """
-                        """repository" src="/images/icons/lock_open.png"/>""")
+        response.mustcontain(
+            """<img style="margin-bottom:2px" class="icon" """
+            """title="Mercurial repository" alt="Mercurial """
+            """repository" src="/images/icons/hgicon.png"/>"""
+        )
+        response.mustcontain(
+            """<img style="margin-bottom:2px" class="icon" """
+            """title="public repository" alt="public """
+            """repository" src="/images/icons/lock_open.png"/>"""
+        )
 
         #codes stats
         self._enable_stats()
@@ -26,15 +30,15 @@
         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("""<input style="width:80%;margin-left:105px" type="text" id="clone_url" readonly="readonly" value="http://test_admin@localhost:80/vcs_test_hg"/>""")