X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;f=mudpy%2Ftests%2Fselftest.py;h=bc878857e8c7bdd79e9c8dc4b7247f15c68ca145;hb=06427b10a84b65b3ca947f3062c11e3b82951bb4;hp=f2620633763cf910f98cdfd9817fb8373c47fdf5;hpb=db8edcf9c6070a39c6205ac0e1cd9e811fa08312;p=mudpy.git diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index f262063..bc87885 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -186,7 +186,7 @@ test_reload = ( r".* User admin reloaded the world\.", "show element account.admin"), (2, 'These are the properties of the "account.admin" element.*' - " \x1b\[32mpasshash:\r\n\x1b\[31m\$.*> ", ""), + r' \x1b\[32mpasshash:\r\n\x1b\[31m\$.*> ', ""), ) test_set_facet = ( @@ -261,6 +261,21 @@ test_log_no_errors = ( (2, r"None of the [0-9]+ lines in memory matches your request\.", ""), ) +final_cleanup = ( + (0, "> ", "quit"), + (0, "What would you like to do?", "d"), + (0, "Whom would you like to delete?", ""), + (0, "What would you like to do?", "p"), + (0, "permanently delete your account?", "y"), + (0, "Disconnecting...", ""), + (2, "> ", "quit"), + (2, "What would you like to do?", "d"), + (2, "Whom would you like to delete?", ""), + (2, "What would you like to do?", "p"), + (2, "permanently delete your account?", "y"), + (2, "Disconnecting...", ""), +) + dialogue = ( (test_account0_setup, "first account setup"), (test_account1_setup, "second account setup"), @@ -293,6 +308,7 @@ dialogue = ( (test_custom_loglevel, "custom loglevel"), (test_invalid_loglevel, "invalid loglevel"), (test_log_no_errors, "no errors logged"), + (final_cleanup, "delete remaining accounts"), )