'Test that course_id is added as the label if present, and nonInteraction is set.'

def test_event_fields(self):

    data = {sentinel.key: sentinel.value}
    context = {'path': sentinel.path, 'user_id': sentinel.user_id, 'course_id': sentinel.course_id, 'org_id': sentinel.org_id, 'client_id': sentinel.client_id}
    with self.tracker.context('test', context):
        self.tracker.emit(sentinel.name, data)
    emitted_event = self.get_event()
    expected_event = {'context': context, 'data': data, 'label': sentinel.course_id, 'name': sentinel.name, 'nonInteraction': 1, 'timestamp': FROZEN_TIME}
    assert_events_equal(expected_event, emitted_event)
