Test that the show log command works
[mudpy.git] / bin / test
index d37aca5..62a6202 100755 (executable)
--- a/bin/test
+++ b/bin/test
@@ -156,6 +156,12 @@ test_admin_help = (
     (2, "This will save all active accounts", ""),
 )
 
+test_show_log = (
+    (2, "> ", "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:", ""),
+)
+
 dialogue = (
     (test_account0_setup, "first account setup"),
     (test_account1_setup, "second account setup"),
@@ -171,6 +177,7 @@ dialogue = (
     (test_admin_setup, "admin account setup"),
     (test_admin_restriction, "restricted admin commands"),
     (test_admin_help, "admin help"),
+    (test_show_log, "show log"),
 )
 
 captures = ["", "", ""]