def test_callback_called_on_configure(self):
        calls = []
        request_id = configurator.request_config(
            self.hass, "Test Request", lambda _: calls.append(1))

        self.hass.services.call(
            configurator.DOMAIN, configurator.SERVICE_CONFIGURE,
            {configurator.ATTR_CONFIGURE_ID: request_id})

        self.hass.pool.block_till_done()
        self.assertEqual(1, len(calls), "Callback not called")
iterate over keys; equivalent to __iter__
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_configurator.py/TestConfigurator.test_callback_called_on_configure--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/zope/zope/interface/common/mapping.py/IIterableMapping.iterkeys