def METHOD_NAME(self, mock_logger, mock_from_json, mock_request):
    """
    Test that the image is correctly downloaded
    While this way of testing is fragile and depends on what exactly (and when)
    things are logged, it seems to work. Also, directly mocking the logger
    object could probably be done better
    """
    with self.settings(
        WGER_SETTINGS={'DOWNLOAD_INGREDIENTS_FROM': DOWNLOAD_INGREDIENT_WGER}, TESTING=False
    ):
        result = fetch_ingredient_image(1)
        mock_logger.assert_any_call('Fetching image for ingredient 1')
        mock_logger.assert_any_call(
            'Trying to fetch image from WGER for Test ingredient 1 (UUID: '
            '7908c204-907f-4b1e-ad4e-f482e9769ade)'
        )
        mock_request.assert_any_call(
            'https://wger.de/api/v2/ingredient-image/?ingredient__uuid=7908c204-907f-4b1e-ad4e-f482e9769ade',
            headers=wger_headers(),
        )
        mock_request.assert_any_call(
            'http://localhost:8000/media/ingredients/1/188324b5-587f-42d7-9abc-d2ca64c73d45.jpg',
            headers=wger_headers()
        )
        mock_from_json.assert_called()
        self.assertEqual(result, None)