X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;f=mudpy%2Ftests%2Fselftest.py;h=fa96ad07861920820c190759d7877084e34eb334;hb=dd0dd65ee60e71ab5f32b6bb63a28a8b157949a3;hp=0b293865c74d32b81784225e74a0d4824e1bb930;hpb=54423d0151eebde19eaeb7bb32fd2368e9e6319e;p=mudpy.git diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index 0b29386..fa96ad0 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -183,7 +183,10 @@ test_admin_help = ( test_reload = ( (2, "> ", "reload"), (2, r"Reloading all code modules, configs and data\." - r".* User admin reloaded the world\.", ""), + 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\$.*> ", ""), ) test_set_facet = ( @@ -258,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"), @@ -290,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"), )