def test_delete_user_when_id_invalid_should_reply_404(self):
    request = self.factory.delete(reverse('v1:user-detail', kwargs={'pk': 100}))
    user_detail_view = UserViewSet.as_view({'delete': 'destroy'})
    response = user_detail_view(request, pk=100)
    self.assertEqual(status.HTTP_404_NOT_FOUND, response.status_code)
def test_delete_user_when_id_invalid_should_reply_404(self):
    request = self.factory.delete(reverse('v1:user-detail', kwargs={'pk': 100}))
    user_detail_view = UserViewSet.as_view({'delete': 'destroy'})
    response = user_detail_view(request, pk=100)
    self.assertEqual(status.HTTP_404_NOT_FOUND, response.status_code)