diff options
author | Jacob Mason <jacoblmason@gmail.com> | 2010-08-06 21:13:06 -0500 |
---|---|---|
committer | Jacob Mason <jacoblmason@gmail.com> | 2010-08-06 21:13:06 -0500 |
commit | 1d98a50bdc5fb6256e2c66d1384267208a15597a (patch) | |
tree | 339212e205cba224115f447f124cc4dab0118871 /tests/test_websupport.py | |
parent | 63e96b2fd5d127a372a891953fbfcdb64994825c (diff) | |
download | sphinx-git-1d98a50bdc5fb6256e2c66d1384267208a15597a.tar.gz |
add moderator kwarg to moderation methods.
Diffstat (limited to 'tests/test_websupport.py')
-rw-r--r-- | tests/test_websupport.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_websupport.py b/tests/test_websupport.py index 2db29a2e1..37f0a679e 100644 --- a/tests/test_websupport.py +++ b/tests/test_websupport.py @@ -234,8 +234,11 @@ def test_moderation(support): displayed=False) # Make sure the moderation_callback is called. assert called == True - support.accept_comment(accepted['id']) - support.reject_comment(rejected['id']) + # Make sure the user must be a moderator. + raises(UserNotAuthorizedError, support.accept_comment, accepted['id']) + raises(UserNotAuthorizedError, support.reject_comment, accepted['id']) + support.accept_comment(accepted['id'], moderator=True) + support.reject_comment(rejected['id'], moderator=True) comments = support.get_data(3)['comments'] assert len(comments) == 1 comments = support.get_data(3, moderator=True)['comments'] |