def _test_locations():
    locations = config['backup']['locations']
    bad_locations = [(os.path.exists(location['src']), location['src']) for location in locations]
    bad_locations += [(os.path.exists(location['dest']), location['dest']) for location in locations]
    logger.debug(bad_locations)
    for location in bad_locations:
        if (not location[0]):
            logger.debug((('Error location ' + location[1]) + ' does not exist'))
    if (len([location for location in bad_locations if (not location[0])]) > 0):
        logger.debug('One or more locations are not accessible, existing')
def _test_locations():
    locations = config['backup']['locations']
    bad_locations = [(os.path.exists(location['src']), location['src']) for location in locations]
    bad_locations += [(os.path.exists(location['dest']), location['dest']) for location in locations]
    logger.debug(bad_locations)
    for location in bad_locations:
        if (not location[0]):
            logger.debug((('Error location ' + location[1]) + ' does not exist'))
    if (len([location for location in bad_locations if (not location[0])]) > 0):
        logger.debug('One or more locations are not accessible, existing')