X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;f=mudpy%2Ftests%2Fselftest.py;h=a6bb6d66b6497350a511c9bc48b1db2718bdd054;hb=9211ade5661ae145b9be89786a540916120914e4;hp=56814d4d2c65a344809d7c1d4066b6bca344c4a3;hpb=b18f66cbef4f215b1f3f6db239c21a4e07a8899e;p=mudpy.git diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index 56814d4..a6bb6d6 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -174,6 +174,11 @@ test_custom_loglevel = ( "[0-9]+\. The matching lines\r\nfrom [0-9]+ to [0-9]+ are:", ""), ) +test_invalid_loglevel = ( + (2, "> ", "set account:admin loglevel two"), + (2, "Value \"two\" of type \"\" cannot be coerced .*> ", ""), +) + test_log_no_errors = ( (2, "> ", "show log 7"), (2, "None of the [0-9]+ lines in memory matches your request\.", ""), @@ -197,6 +202,7 @@ dialogue = ( (test_show_element, "show element"), (test_show_log, "show log"), (test_custom_loglevel, "show log"), + (test_invalid_loglevel, "invalid loglevel"), (test_log_no_errors, "no errors logged"), )