'Test that a label is not added if course_id is not specified, but nonInteraction is still set.'

def test_no_course_id(self):

    data = {sentinel.key: sentinel.value}
    context = {'path': sentinel.path, 'user_id': sentinel.user_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, 'name': sentinel.name, 'nonInteraction': 1, 'timestamp': FROZEN_TIME}
    assert_events_equal(expected_event, emitted_event)
