def test_fallback(): d = DogmaticDict(fallback={'a': 23}) assert 'a' in d assert d['a'] == 23 assert d.get('a') == 23 d = DogmaticDict() d.fallback = {'a': 23} assert 'a' in d assert d['a'] == 23 assert d.get('a') == 23
def test_fallback(): d = DogmaticDict(fallback={"a": 23}) assert "a" in d assert d["a"] == 23 assert d.get("a") == 23 d = DogmaticDict() d.fallback = {"a": 23} assert "a" in d assert d["a"] == 23 assert d.get("a") == 23