allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [1/2] git commit: [#7218] ticket:554 Test that rss feed contains self link
Date Thu, 27 Mar 2014 22:08:51 GMT
Repository: allura
Updated Branches:
  refs/heads/master e2780d6e0 -> e7a513e0e


[#7218] ticket:554 Test that rss feed contains self link


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/e7a513e0
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/e7a513e0
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/e7a513e0

Branch: refs/heads/master
Commit: e7a513e0ef21ec38ce30dc4cb7384e05b0c1792a
Parents: 2ec715d
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon Mar 10 08:15:51 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Mar 27 22:08:21 2014 +0000

----------------------------------------------------------------------
 ForgeBlog/forgeblog/tests/functional/test_root.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/e7a513e0/ForgeBlog/forgeblog/tests/functional/test_root.py
----------------------------------------------------------------------
diff --git a/ForgeBlog/forgeblog/tests/functional/test_root.py b/ForgeBlog/forgeblog/tests/functional/test_root.py
index cfe43c6..63bbb8c 100644
--- a/ForgeBlog/forgeblog/tests/functional/test_root.py
+++ b/ForgeBlog/forgeblog/tests/functional/test_root.py
@@ -17,7 +17,7 @@
 
 import datetime
 
-from nose.tools import assert_equal
+from nose.tools import assert_equal, assert_in
 from ming.orm.ormsession import ThreadLocalORMSession
 from mock import patch
 
@@ -194,6 +194,14 @@ class Test(TestController):
         self.app.get('/blog/feed.rss')
         self.app.get('/blog/feed.atom')
 
+    def test_rss_feed_contains_self_link(self):
+        r = self.app.get('/blog/feed.rss')
+        # atom namespace included
+        assert_in('<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">', r)
+        # ...and atom:link points to feed url
+        assert_in('<atom:link href="http://localhost/blog/feed.rss" '
+                  'type="application/rss+xml" rel="self"></atom:link>', r)
+
     def test_post_feeds(self):
         self._post()
         d = self._blog_date()


Mime
View raw message