def METHOD_NAME(self):
    sys.argv += ["-w", "-p", "0"]
    with warnings.catch_warnings():
        warnings.filterwarnings("error")
        self.assertRaises(RuntimeWarning, pyftpdlib.__main__.main)
    # unexpected argument
    sys.argv = self.SYSARGV[:]
    sys.argv += ["-w foo"]
    sys.stderr = self.devnull
    self.assertRaises(SystemExit, pyftpdlib.__main__.main)