'Test if custom log book entries get added as an entry.'

def test_process_custom_logbook_entries(self):

    name = 'Nice    name'
    message = 'has    a    custom    entry'
    entity_id = 'sun.sun'
    entries = list(logbook.humanify((ha.Event(logbook.EVENT_LOGBOOK_ENTRY, {logbook.ATTR_NAME: name, logbook.ATTR_MESSAGE: message, logbook.ATTR_ENTITY_ID: entity_id}),)))
    self.assertEqual(1, len(entries))
    self.assert_entry(entries[0], name=name, message=message, domain='sun', entity_id=entity_id)
