'Test if our callback gets called when configure service called.'

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.block_till_done()
    self.assertEqual(1, len(calls), 'Callback    not    called')
