You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/04/15 16:02:55 UTC

[3/7] git commit: [#5481] ticket:313 anonymous access to the members page

[#5481] ticket:313 anonymous access to the members page


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

Branch: refs/heads/master
Commit: b2e7c48d27126fbc0126fe426fe753b059d9136b
Parents: 18f106f
Author: Yuriy Arhipov <yu...@yandex.ru>
Authored: Fri Apr 5 13:00:21 2013 +0400
Committer: Cory Johns <cj...@slashdotmedia.com>
Committed: Mon Apr 15 14:01:51 2013 +0000

----------------------------------------------------------------------
 Allura/allura/tests/functional/test_home.py |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b2e7c48d/Allura/allura/tests/functional/test_home.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_home.py b/Allura/allura/tests/functional/test_home.py
index 758132e..862ebf7 100644
--- a/Allura/allura/tests/functional/test_home.py
+++ b/Allura/allura/tests/functional/test_home.py
@@ -56,3 +56,17 @@ class TestProjectHome(TestController):
             'label': u'Test Admin (test-admin)'
         }]
         assert_equal(j['options'], expected)
+
+    def test_members(self):
+        r = self.app.get('/p/test/_members/')
+        assert '<td >Test Admin</td>' in r
+        assert '<td ><a href="/u/test-admin/">test-admin</a></td>' in r
+        assert '<td > Admin</br> </td>' in r
+        assert '<td >test-admin@users.localhost</td>' in r
+
+    def test_members_anonymous(self):
+        r = self.app.get('/p/test/_members/', extra_environ=dict(username='*anonymous'))
+        assert '<td >Test Admin</td>' in r
+        assert '<td ><a href="/u/test-admin/">test-admin</a></td>' in r
+        assert '<td > Admin</br> </td>' in r
+