'Tests that we do not fail on translated unicode events.'

def test_emit_unicode_event(self):

    started_event = virtevent.LifecycleEvent('cef19ce0-0ca2-11df-855d-b19fbce37686', virtevent.EVENT_LIFECYCLE_STARTED)
    callback = mock.Mock()
    self.connection.register_event_listener(callback)
    with mock.patch.object(started_event, 'get_name', return_value=u'\xf0\x9f\x92\xa9'):
        self.connection.emit_event(started_event)
    callback.assert_called_once_with(started_event)
