X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=bin%2Ftest;h=78fbb37fea09a5c96121a62684c3a588a1a91994;hp=8e5939bbec919149c3006f2c1d406bcfbd1c7832;hb=4fe66ea61adda4bb6a15989dbb0a9a70d30b4038;hpb=ad484399f27d5f97fd879f0df794eb09416f4254 diff --git a/bin/test b/bin/test index 8e5939b..78fbb37 100755 --- a/bin/test +++ b/bin/test @@ -7,27 +7,27 @@ u"""Regression test script for the mudpy engine.""" # terms provided in the LICENSE file distributed with this software. 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" ), - ( "Choose a name for her:" , "1" ), - ( "What would you like to do?" , "a" ), - ( "Whom would you like to awaken?" , "" ), - ( ">" , "quit" ), - ( "What would you like to do?" , "d" ), - ( "Whom would you like to delete?" , "" ), - ( "What would you like to do?" , "p" ), - ( "permanently delete your account?" , "y" ), - ( "Disconnecting..." , "" ), + ("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"), + ("Choose a name for her:", "1"), + ("What would you like to do?", "a"), + ("Whom would you like to awaken?", ""), + (">", "quit"), + ("What would you like to do?", "d"), + ("Whom would you like to delete?", ""), + ("What would you like to do?", "p"), + ("permanently delete your account?", "y"), + ("Disconnecting...", ""), ) import telnetlib mud = telnetlib.Telnet() -mud.open("::1",6669) -for question,answer in conversation: - mud.read_until("%s " % question) - mud.write("%s\r\n" % answer) +mud.open("::1", 6669) +for question, answer in conversation: + mud.read_until("%s " % question) + mud.write("%s\r\n" % answer) mud.close()