Rev 197: Fixed indentation and long lines. in http://bzr.daniel-watkins.co.uk/pqm/ui

Daniel Watkins daniel at daniel-watkins.co.uk
Thu Jul 10 13:29:04 BST 2008


At http://bzr.daniel-watkins.co.uk/pqm/ui

------------------------------------------------------------
revno: 197
revision-id: daniel at daniel-watkins.co.uk-20080710122751-xws6e2noozl3shax
parent: daniel at daniel-watkins.co.uk-20080710122516-u5tbwpusa2ma5cvs
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: ui
timestamp: Thu 2008-07-10 13:27:51 +0100
message:
  Fixed indentation and long lines.
-------------- next part --------------
=== modified file 'pqm/ui/tests/test_twisted.py'
--- a/pqm/ui/tests/test_twisted.py	2008-07-10 12:25:16 +0000
+++ b/pqm/ui/tests/test_twisted.py	2008-07-10 12:27:51 +0000
@@ -73,52 +73,53 @@
         request = DummyRequest([''])
         result_resource = getChildForRequest(queue, request)
         html = BeautifulSoup(result_resource.render(request)).prettify()
-        expected = (
-"<html>\n"
-" <head>\n"
-"  <title>\n"
-"   Patch Queue Manager\n"
-"  </title>\n"
-" </head>\n"
-" <body>\n"
-"  <h1>\n"
-"   PQM Queue: 3 scripts\n"
-"  </h1>\n"
-"  <p>\n"
-"   Current time: ...\n"
-"  </p>\n"
-"  <h2>\n"
-"   Now playing...\n"
-"  </h2>\n"
-"  <ul>\n"
-"   <li>\n"
-"    <p>\n"
-"     A request for another project.\n"
-"    </p>\n"
-"   </li>\n"
-"  </ul>\n"
-"  <h2>\n"
-"   Coming up\n"
-"  </h2>\n"
-"  <ol>\n"
-"   <li>\n"
-"    <p>\n"
-"     ...: John.Citizen at example.com, Request for non-PQM managed branch.\n"
-"    </p>\n"
-"   </li>\n"
-"   <li>\n"
-"    <p>\n"
-"     ...: John.Citizen at example.com, 'A new action'\n"
-"     <ol>\n"
-"      <li>\n"
-"       Merge archive at example.com/foo--bar--0 archive2 at example.com/bar--foo--2\n"
-"      </li>\n"
-"     </ol>\n"
-"    </p>\n"
-"   </li>\n"
-"  </ol>\n"
-" </body>\n"
-"</html>")
+        expected = ("<html>\n"
+                    " <head>\n"
+                    "  <title>\n"
+                    "   Patch Queue Manager\n"
+                    "  </title>\n"
+                    " </head>\n"
+                    " <body>\n"
+                    "  <h1>\n"
+                    "   PQM Queue: 3 scripts\n"
+                    "  </h1>\n"
+                    "  <p>\n"
+                    "   Current time: ...\n"
+                    "  </p>\n"
+                    "  <h2>\n"
+                    "   Now playing...\n"
+                    "  </h2>\n"
+                    "  <ul>\n"
+                    "   <li>\n"
+                    "    <p>\n"
+                    "     A request for another project.\n"
+                    "    </p>\n"
+                    "   </li>\n"
+                    "  </ul>\n"
+                    "  <h2>\n"
+                    "   Coming up\n"
+                    "  </h2>\n"
+                    "  <ol>\n"
+                    "   <li>\n"
+                    "    <p>\n"
+                    "     ...: John.Citizen at example.com, Request for"
+                                         " non-PQM managed branch.\n"
+                    "    </p>\n"
+                    "   </li>\n"
+                    "   <li>\n"
+                    "    <p>\n"
+                    "     ...: John.Citizen at example.com, 'A new action'\n"
+                    "     <ol>\n"
+                    "      <li>\n"
+                    "       Merge archive at example.com/foo--bar--0"
+                             " archive2 at example.com/bar--foo--2\n"
+                    "      </li>\n"
+                    "     </ol>\n"
+                    "    </p>\n"
+                    "   </li>\n"
+                    "  </ol>\n"
+                    " </body>\n"
+                    "</html>")
         self.assertDocTest(expected, html)
 
     def testProjectSpecificPage(self):
@@ -165,7 +166,8 @@
                     "     ...: John.Citizen at example.com, 'A new action'\n"
                     "     <ol>\n"
                     "      <li>\n"
-                    "       Merge archive at example.com/foo--bar--0 archive2 at example.com/bar--foo--1\n"
+                    "       Merge archive at example.com/foo--bar--0"
+                             " archive2 at example.com/bar--foo--1\n"
                     "      </li>\n"
                     "     </ol>\n"
                     "    </p>\n"
@@ -177,7 +179,8 @@
                     "  <ol>\n"
                     "   <li>\n"
                     "    <p>\n"
-                    "     ...: John.Citizen at example.com, Request for non-PQM managed branch.\n"
+                    "     ...: John.Citizen at example.com, Request for non-PQM"
+                                                         " managed branch.\n"
                     "    </p>\n"
                     "   </li>\n"
                     "   <li>\n"



More information about the bazaar-commits mailing list