'When the ``__setitem__`` method is called, the object
passed in as ``val`` will be decorated with a ``__parent__``
attribute pointing at the dummy resource and a ``__name__``
attribute that is the value of ``name``.  The value will then
be returned when dummy resource\'s ``__getitem__`` is called with
the name ``name```.'

def __setitem__(self, name, val):

    val.__name__ = name
    val.__parent__ = self
    self.subs[name] = val
