def test_invalid_action(self):
# parametrize doesn't work with gen_test?
scopes = [
'invalid',
READ + ' invalid',
'invalid[read]'
]
for scope in scopes:
with pytest.raises(oauth2.InvalidScope):
yield Scope(scope).validate(self.client)
评论列表
文章目录