def add_arguments(parser): parser.add_argument("-p", "--port", action="store", type=int, default=config.DEFAULT_PORT, help="listening TCP port") parser.add_argument("--passwd-path", action="store", type=str, default=prefs.passwd_path(), help="path to passwd file") parser.add_argument("-n", "--no-passwd", action="store_true", help="do not check passwords") parser.add_argument("-l", "--log-path", action="store", type=str, help="path to logfile")
def test_passwd_path(): assert prefs.passwd_path() == os.path.expanduser( "~/.slugathon/globalprefs/passwd")