@asyncio.coroutine
def test_async_get_all_descriptions(hass):
    'Test async_get_all_descriptions.'
    group = loader.get_component(hass, 'group')
    group_config = {group.DOMAIN: {}}
    (yield from async_setup_component(hass, group.DOMAIN, group_config))
    descriptions = (yield from service.async_get_all_descriptions(hass))
    assert (len(descriptions) == 1)
    assert ('description' in descriptions['group']['reload'])
    assert ('fields' in descriptions['group']['reload'])
    logger = loader.get_component(hass, 'logger')
    logger_config = {logger.DOMAIN: {}}
    (yield from async_setup_component(hass, logger.DOMAIN, logger_config))
    descriptions = (yield from service.async_get_all_descriptions(hass))
    assert (len(descriptions) == 2)
    assert ('description' in descriptions[logger.DOMAIN]['set_level'])
    assert ('fields' in descriptions[logger.DOMAIN]['set_level'])
Test async_get_all_descriptions.
@asyncio.coroutine
def test_async_get_all_descriptions(hass):
    
    group = loader.get_component(hass, 'group')
    group_config = {group.DOMAIN: {}}
    (yield from async_setup_component(hass, group.DOMAIN, group_config))
    descriptions = (yield from service.async_get_all_descriptions(hass))
    assert (len(descriptions) == 1)
    assert ('description' in descriptions['group']['reload'])
    assert ('fields' in descriptions['group']['reload'])
    logger = loader.get_component(hass, 'logger')
    logger_config = {logger.DOMAIN: {}}
    (yield from async_setup_component(hass, logger.DOMAIN, logger_config))
    descriptions = (yield from service.async_get_all_descriptions(hass))
    assert (len(descriptions) == 2)
    assert ('description' in descriptions[logger.DOMAIN]['set_level'])
    assert ('fields' in descriptions[logger.DOMAIN]['set_level'])