'Test if events of automatically generated groups are filtered.'

def test_exclude_auto_groups(self):

    entity_id = 'switch.bla'
    entity_id2 = 'group.switches'
    pointA = dt_util.utcnow()
    eventA = self.create_state_changed_event(pointA, entity_id, 10)
    eventB = self.create_state_changed_event(pointA, entity_id2, 20, {'auto': True})
    entries = list(logbook.humanify((eventA, eventB)))
    self.assertEqual(1, len(entries))
    self.assert_entry(entries[0], pointA, 'bla', domain='switch', entity_id=entity_id)
