def test_get_invalid_item(self): assert DataBag.get('foo.bar.baz') is None
def test_get_invalid_item_default(self): assert DataBag.get('foo.bar.baz', 'default') == 'default'
def test_get_item(self): DataBag._data = {'foo': {'bar': {'baz': 42}}} assert DataBag.get('foo.bar.baz') is 42