'Test for Zendesk returning an error on ticket update.
If Zendesk returns any error on ticket update, we return a 200 to the
browser because the update contains additional information that is not
necessary for the user to have submitted their feedback.'

def test_zendesk_error_on_update(self, zendesk_mock_class, datadog_mock):

    err = ZendeskError(msg='', error_code=500)
    zendesk_mock_instance = zendesk_mock_class.return_value
    zendesk_mock_instance.update_ticket.side_effect = err
    resp = self._build_and_run_request(self._anon_user, self._anon_fields)
    self.assertEqual(resp.status_code, 200)
    self._assert_datadog_called(datadog_mock, ['issue_type:{}'.format(self._anon_fields['issue_type'])])
