'Test a valid request from an anonymous user.
The response should have a 200 (success) status code, and a ticket with
the given information should have been submitted via the Zendesk API.'

def test_valid_request_anon_user(self, zendesk_mock_class, datadog_mock):

    zendesk_mock_instance = zendesk_mock_class.return_value
    user = self._anon_user
    fields = self._anon_fields
    ticket_id = 42
    zendesk_mock_instance.create_ticket.return_value = ticket_id
    ticket = self._build_zendesk_ticket(recipient=TEST_SUPPORT_EMAIL, name=fields['name'], email=fields['email'], subject=fields['subject'], details=fields['details'], tags=[fields['issue_type'], 'LMS'])
    ticket_update = self._build_zendesk_ticket_update(TEST_REQUEST_HEADERS)
    self._test_success(user, fields)
    self._assert_zendesk_called(zendesk_mock_instance, ticket_id, ticket, ticket_update)
    self._assert_datadog_called(datadog_mock, ['issue_type:{}'.format(fields['issue_type'])])
