X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Ftests%2Fselftest.py;h=56814d4d2c65a344809d7c1d4066b6bca344c4a3;hp=d246cfeaef44730797464bcc7ed044c4603715fd;hb=9d7268dbda760522aaef21b6f40c9b3358a20ffb;hpb=8b36f8aae8f9297de8eb7d8fb9b64d7d68abe31c diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index d246cfe..56814d4 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -131,9 +131,9 @@ test_account1_teardown = ( ) test_admin_setup = ( - (2, "Identify yourself:", "testadmin"), + (2, "Identify yourself:", "admin"), (2, "Enter your choice:", "n"), - (2, "Enter a new password for \"testadmin\":", "Test789"), + (2, "Enter a new password for \"admin\":", "Test789"), (2, "Enter the same new password again:", "Test789"), (2, "What would you like to do\?", "c"), (2, "Pick a birth gender for your new avatar:", "m"), @@ -167,6 +167,13 @@ test_show_log = ( "[0-9]+\. The matching lines\r\nfrom [0-9]+ to [0-9]+ are:", ""), ) +test_custom_loglevel = ( + (2, "> ", "set account:admin loglevel 2"), + (2, "You have successfully .*> ", "show log"), + (2, "There are [0-9]+ log lines in memory and [0-9]+ at or above level " + "[0-9]+\. The matching lines\r\nfrom [0-9]+ to [0-9]+ are:", ""), +) + test_log_no_errors = ( (2, "> ", "show log 7"), (2, "None of the [0-9]+ lines in memory matches your request\.", ""), @@ -189,6 +196,7 @@ dialogue = ( (test_admin_help, "admin help"), (test_show_element, "show element"), (test_show_log, "show log"), + (test_custom_loglevel, "show log"), (test_log_no_errors, "no errors logged"), )