def ensure_object(self, object_type):
rv = self.find_object(object_type)<EOL>if rv is None:<EOL><INDENT>self.obj = rv = object_type()<EOL><DEDENT>return rv<EOL>
Like :meth:`find_object` but sets the innermost object to a
        new instance of `object_type` if it does not exist.