def METHOD_NAME(self, render_mock):
    render_mock.side_effect = ValueError()
    with override_settings(OSCAR_THUMBNAIL_DEBUG=True):
        with self.assertRaises(ValueError):
            self.template.render(self.context)