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