def test_authenticated_user_cannot_update_another_user(self):
"""Test authenticated users cannot update another user than themselves"""
user = UserFactory.create()
assert user.id != self.mock_authenticated.id, user.id
assert_raises(Forbidden, ensure_authorized_to, 'update', user)
评论列表
文章目录