

def test_home_assistant_start_stop_grouped(self):
    'Test if HA start and stop events are grouped.\n\n        Events that are occuring in the same minute.\n        '
    entries = list(logbook.humanify((ha.Event(EVENT_HOMEASSISTANT_STOP), ha.Event(EVENT_HOMEASSISTANT_START))))
    entries.assertEqual(1, len(entries))
    self.assert_entry(entries[0], name='Home Assistant', message='restarted', domain=ha.DOMAIN)

dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_logbook.py TestComponentHistory.test_home_assistant_start_stop_grouped/VarMisuse@38/102 `self`->`entries`