def test_overlap_unfold(): d = {'t.t.a': 'b.c', 't.t.d': 'e.f.g'} eq_( unfold_d(d), {'t': {'t': {'a': 'b.c', 'd': 'e.f.g'}}}, "Basic unfold to dotted notation" )
def test_base_case_unfold(): d = {'a.b.c': 'd', 'e.f': 'g'} eq_( unfold_d(d), {'e': {'f': 'g'}, 'a': {'b': {'c': 'd'}}}, "Basic unfold to dotted notation" )