projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct name of the custom loglevel test
[mudpy.git]
/
mudpy
/
tests
/
selftest.py
diff --git
a/mudpy/tests/selftest.py
b/mudpy/tests/selftest.py
index
56814d4
..
4ffe027
100644
(file)
--- 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:", ""),
)
"[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 \"<class 'str'>\" cannot be coerced .*> ", ""),
+)
+
test_log_no_errors = (
(2, "> ", "show log 7"),
(2, "None of the [0-9]+ lines in memory matches your request\.", ""),
test_log_no_errors = (
(2, "> ", "show log 7"),
(2, "None of the [0-9]+ lines in memory matches your request\.", ""),
@@
-196,7
+201,8
@@
dialogue = (
(test_admin_help, "admin help"),
(test_show_element, "show element"),
(test_show_log, "show log"),
(test_admin_help, "admin help"),
(test_show_element, "show element"),
(test_show_log, "show log"),
- (test_custom_loglevel, "show log"),
+ (test_custom_loglevel, "custom loglevel"),
+ (test_invalid_loglevel, "invalid loglevel"),
(test_log_no_errors, "no errors logged"),
)
(test_log_no_errors, "no errors logged"),
)