#!/usr/bin/env python
-# -*- coding: utf-8 -*-
"""Regression test script for the mudpy engine."""
-# Copyright (c) 2004-2013 Jeremy Stanley <fungi@yuggoth.org>. Permission
+# Copyright (c) 2004-2015 Jeremy Stanley <fungi@yuggoth.org>. Permission
# to use, copy, modify, and distribute this software is granted under
# terms provided in the LICENSE file distributed with this software.
+import telnetlib
+
conversation = (
("Identify yourself:", "testuser"),
("Enter your choice:", "n"),
("Enter a new password for \"testuser\":", "Test123"),
("Enter the same new password again:", "Test123"),
("What would you like to do?", "c"),
- ("Pick a gender for your new avatar:", "f"),
+ ("Pick a birth gender for your new avatar:", "f"),
("Choose a name for her:", "1"),
("What would you like to do?", "a"),
("Whom would you like to awaken?", ""),
("Disconnecting...", ""),
)
-import telnetlib
mud = telnetlib.Telnet()
mud.open("::1", 6669)
for question, answer in conversation: