def test_replace(): s = Settings({'foo': 'bar'}) new = Settings({'zing': 'zang'}) s.replace(new) assert s.maps == new.maps with pytest.raises(htmap.exceptions.MissingSetting): s['foo'] assert s['zing'] == 'zang'
def test_replace(): s = Settings({"foo": "bar"}) new = Settings({"zing": "zang"}) s.replace(new) assert s.maps == new.maps with pytest.raises(htmap.exceptions.MissingSetting): s["foo"] assert s["zing"] == "zang"