def test_to_dict_with_single_map(): s = Settings({ 'outer': { 'inner': 'foo', }, }) assert s.to_dict() == {'outer': {'inner': 'foo'}}
def test_to_dict_with_single_map(): s = Settings({ "outer": { "inner": "foo", }, }) assert s.to_dict() == {"outer": {"inner": "foo"}}
def test_to_dict_with_no_overlap(): s = Settings({ 'outer': { 'top': 'this', }, }, { 'outer': { 'bottom': 'that', }, }) assert s.to_dict() == {'outer': {'top': 'this', 'bottom': 'that'}}
def test_to_dict_with_override(): s = Settings({ 'outer': { 'inner': 'override', }, }, { 'outer': { 'inner': 'hidden', }, }) assert s.to_dict() == {'outer': {'inner': 'override'}}
def test_to_dict_with_no_overlap(): s = Settings({ "outer": { "top": "this", }, }, { "outer": { "bottom": "that", }, }) assert s.to_dict() == {"outer": {"top": "this", "bottom": "that"}}
def test_to_dict_with_override(): s = Settings({ "outer": { "inner": "override", }, }, { "outer": { "inner": "hidden", }, }) assert s.to_dict() == {"outer": {"inner": "override"}}