def defaults_can_skip_merging(self): c = Config() c.load_defaults({"foo": "bar"}, merge=False) assert "foo" not in c c.merge() assert c.foo == "bar"
def defaults_can_be_given_via_method(self): c = Config() assert "foo" not in c c.load_defaults({"foo": "bar"}) assert c.foo == "bar"