'Test if calling request done works.'

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.block_till_done()
    self.assertEqual(0, len(self.hass.states.all()))
