allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [4/6] git commit: [#5481] ticket:313 anonymous access to the members page
Date Fri, 12 Apr 2013 21:16:34 GMT
[#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/5a8f06e6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/5a8f06e6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/5a8f06e6

Branch: refs/heads/cj/5481
Commit: 5a8f06e6e15cf85305e0c0b686e7850ba44ac8cc
Parents: cb93e79
Author: Yuriy Arhipov <yuriyarhipovua@yandex.ru>
Authored: Fri Apr 5 13:00:21 2013 +0400
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Fri Apr 12 17:16:16 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/5a8f06e6/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 1bb626a..921da96 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
+


Mime
View raw message