Rev 205: Added inital RSS test. in http://bzr.daniel-watkins.co.uk/pqm/rss

Daniel Watkins daniel at daniel-watkins.co.uk
Thu Jul 10 14:51:48 BST 2008


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

------------------------------------------------------------
revno: 205
revision-id: daniel at daniel-watkins.co.uk-20080710135035-2m6qa7w4s0mk6cyo
parent: daniel at daniel-watkins.co.uk-20080710134803-1rf9s0v6uki5qawv
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: rss
timestamp: Thu 2008-07-10 14:50:35 +0100
message:
  Added inital RSS test.
-------------- next part --------------
=== modified file 'pqm/ui/tests/test_twisted.py'
--- a/pqm/ui/tests/test_twisted.py	2008-07-10 12:27:51 +0000
+++ b/pqm/ui/tests/test_twisted.py	2008-07-10 13:50:35 +0000
@@ -192,3 +192,18 @@
                     " </body>\n"
                     "</html>")
         self.assertDocTest(expected, html)
+
+    def testRSS(self):
+        queue = self.getResource()
+        request = DummyRequest(['rss.xml'])
+        result_resource = getChildForRequest(queue, request)
+        rss = result_resource.render(request)
+        expected = ('<?xml version="1.0"?>\n'
+                    '<rss version="2.0">\n'
+                    '  <channel>\n'
+                    '    <title>Patch Queue Manager Queue</title>\n'
+                    '    <link></link>\n'
+                    '    <description></description>\n'
+                    '  </channel>\n'
+                    '</rss>')
+        self.assertDocTest(expected, rss)



More information about the bazaar-commits mailing list