def load_docstring(fn):
def load_wrapper(self, *args, **kwargs):<EOL><INDENT>try:<EOL><INDENT>loader = xtuml.ModelLoader()<EOL>loader.input(fn.__doc__)<EOL>res = loader.build_metamodel()<EOL><DEDENT>except Exception as ex:<EOL><INDENT>res = ex<EOL><DEDENT>fn(self, res)<EOL><DEDENT>return load_wrapper<EOL>
Decorator for loading a meta model from a test case doc string