def test_anonymous_user_read(self):
"""Test anonymous user is not allowed to read an oauth token"""
for token in self.auth_providers:
assert_raises(Unauthorized,
ensure_authorized_to, 'read', 'token', token=token)
评论列表
文章目录