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