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/12 23:16:34 UTC
[4/6] 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/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 <yu...@yandex.ru>
Authored: Fri Apr 5 13:00:21 2013 +0400
Committer: Cory Johns <cj...@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
+