def test_config_options(self):
        count_start = len(self.hass.states.entity_ids())

        self.assertTrue(input_boolean.setup(self.hass, {
            'input_boolean': {
                'test_1': None,
                'test_2': {
                    'name': 'Hello World',
                    'icon': 'work',
                    'initial': True,
                },
            },
        }))

        self.assertEqual(count_start + 2, len(self.hass.states.entity_ids()))

        state_1 = self.hass.states.get('input_boolean.test_1')
        state_2 = self.hass.states.get('input_boolean.test_2')

        self.assertIsNotNone(state_1)
        self.assertIsNotNone(state_2)

        self.assertEqual(STATE_OFF, state_1.state)
        self.assertNotIn(ATTR_ICON, state_1.attributes)
        self.assertNotIn(ATTR_FRIENDLY_NAME, state_1.attributes)

        self.assertEqual(STATE_ON, state_2.state)
        self.assertEqual('Hello World',
                         state_2.attributes.get(ATTR_FRIENDLY_NAME))
        self.assertEqual('work', state_2.attributes.get(ATTR_ICON))
Add a new win32 event to the event loop.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_input_boolean.py/TestInputBoolean.test_config_options--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/interfaces.py/IReactorWin32Events.addEvent