# Path: distgen/config.py
# def merge_yaml(origin, override):
#     old = copy.deepcopy(origin)
#     new = copy.deepcopy(override)
#     return _merge_yaml(old, new)
# 
# def load_config(path, config_file, context=None):
#     pm = PathManager(path, file_suffix='.yaml')
#     yaml_data = __recursive_load(pm, [], config_file)
#     return yaml_data


import os
from distgen.config import merge_yaml, load_config



class TestMergeYaml(object):
    def test_non_overlapping(self):
        a = {'a': 1, 'aa': 2}
        b = {'b': 3, 'bb': 4}

# Path: distgen/config.py
# def merge_yaml(origin, override):
#     old = copy.deepcopy(origin)
#     new = copy.deepcopy(override)
#     return _merge_yaml(old, new)
# 
# def load_config(path, config_file, context=None):
#     pm = PathManager(path, file_suffix='.yaml')
#     yaml_data = __recursive_load(pm, [], config_file)
#     return yaml_data


# Path: tests/unittests/test_config.py
import os
from distgen.config import merge_yaml, load_config




class TestMergeYaml(object):
    def test_non_overlapping(self):
        a = {'a': 1, 'aa': 2}
        b = {'b': 3, 'bb': 4}

        assert merge_yaml(a, b) == {'a': 1, 'aa': 2, 'b': 3, 'bb': 4}