def __call__(self, method, *args, **kwargs):
self.output.write(str(method.__name__) + "<STR_LIT>")<EOL>msg = method(*args, **kwargs)<EOL>fail = <NUM_LIT:0><EOL>if bool(msg):<EOL><INDENT>fail = <NUM_LIT:1><EOL>self.output.write("<STR_LIT>")<EOL>self.output.write(self.wrapper.fill(msg) + '<STR_LIT:\n>')<EOL><DEDENT>else:<EOL><INDENT>self.output.write("<STR_LIT>")<EOL><DEDENT>return fail<EOL>
Generic method to turn other methods into tests.