def METHOD_NAME(self):
    super().METHOD_NAME()
    class DummyFTPServer(FTPServer):
        """An overridden version of FTPServer class which forces
        serve_forever() to return immediately.
        """
        def serve_forever(self, *args, **kwargs):
            return
    if PY3:
        import io
        self.devnull = io.StringIO()
    else:
        self.devnull = BytesIO()
    sys.argv = self.SYSARGV[:]
    sys.stderr = self.STDERR
    self.original_ftpserver_class = FTPServer
    pyftpdlib.__main__.FTPServer = DummyFTPServer