def test_request_done_works(self):
        request_id = configurator.request_config(
            self.hass, "Test Request", lambda _: None)
        configurator.request_done(request_id)
        self.assertEqual(1, len(self.hass.states.all()))

        self.hass.bus.fire(EVENT_TIME_CHANGED)
        self.hass.pool.block_till_done()
        self.assertEqual(0, len(self.hass.states.all()))
Test if calling request done works.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_configurator.py/TestConfigurator.test_request_done_works