'The export task should fail gracefully if an exception is thrown'

@mock.patch('contentstore.tasks.export_course_to_xml', side_effect=side_effect_exception)
def test_exception(self, mock_export):

    key = str(self.course.location.course_key)
    result = export_olx.delay(self.user.id, key, u'en')
    self._assert_failed(result, json.dumps({u'raw_error_msg': u'Boom!'}))
