def test_patch_user_when_id_invalid_should_not_patch_user_and_reply_404(self):
    riri = User.objects.create(first_name='Riri', last_name='Duck', email='example@example.com', password='dummy')
    request = self.factory.patch(reverse('v1:user-detail', kwargs={'pk': 100}), data={'email': 'example@example.com'})
    user_detail_view = UserViewSet.as_view({'patch': 'partial_update'})
    response = user_detail_view(request, pk=100)
    self.assertEqual(status.HTTP_404_NOT_FOUND, response.status_code)
def test_patch_user_when_id_invalid_should_not_patch_user_and_reply_404(self):
    riri = User.objects.create(first_name='Riri', last_name='Duck', email='example@example.com', password='dummy')
    request = self.factory.patch(reverse('v1:user-detail', kwargs={'pk': 100}), data={'email': 'example@example.com'})
    user_detail_view = UserViewSet.as_view({'patch': 'partial_update'})
    response = user_detail_view(request, pk=100)
    self.assertEqual(status.HTTP_404_NOT_FOUND, response.status_code)