def is_equal_configuration(source_configuration, target_configuration):
    """
        Check if all outputs from target are already configured correctly in source and
        that no other outputs are active.
    """
    for output in target_configuration.keys():
        if 'off' in target_configuration[output].options:
            if (output in source_configuration and 'off' not in
                source_configuration[output].options):
                return False
        elif output not in source_configuration or source_configuration[output
            ] != target_configuration[output]:
            return False
    for output in source_configuration.keys():
        if 'off' in source_configuration[output].options:
            if (output in target_configuration and 'off' not in
                target_configuration[output].options):
                return False
        elif output not in target_configuration:
            return False
    return True
