def test_merge_once_only(merge_log_err):
 packages = {'pack_1': {'homeassistant': {}}, 'pack_2': {'mqtt': {}, 'api': {}}}
 config = {config_util.CONF_CORE: {config_util.CONF_PACKAGES: packages}, 'mqtt': {}, 'api': {}}
 config_util.merge_packages_config(config, packages)
 assert (merge_log_err.call_count == 3)
 assert (len(config) == 3)

def test_merge_once_only ( merge_log_err ) : packages = { 'pack_1' : { 'homeassistant' : { } } , 'pack_2' : { 'mqtt' : { } , 'api' : { } } } config = { config_util . CONF_CORE : { config_util . CONF_PACKAGES : packages } , 'mqtt' : { } , 'api' : { } } config_util . merge_packages_config ( config , packages ) assert ( merge_log_err . call_count == 3 ) assert ( len ( config ) == 3 )
test if we have a merge for a comp that may occur only once .