def METHOD_NAME(self):
    pyomo.opt.WriterFactory.register('wtest')(MockWriter)
    pyomo.opt.ReaderFactory.register('rtest')(MockReader)
    pyomo.opt.SolverFactory.register('stest')(MockSolver)
    TempfileManager.tempdir = currdir