From 3cfb3e28f88580e78030ebfef4ccf900dd4efec0 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Mon, 31 Jul 2017 14:49:09 +0000 Subject: [PATCH] Use writeable element in show element test In preparation for being able to test the set command, switch the legacy element being shown to one which is not in a read-only file so that we'll be able to test altering it in a future change. --- mudpy/tests/selftest.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index 8713be5..bb0baaa 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -162,12 +162,11 @@ test_reload = ( test_show_element = ( (2, "> ", "show element mudpy.limit"), - (2, r'These are the properties of the "mudpy.limit" element ' - r'\(in.*\.yaml"\):.* \x1b\[32mpassword_tries: ' - r'\x1b\[31m[0-9]+\x1b\[0m.*> ', "show element internal:counters"), - (2, r'These are the properties of the "internal:counters" element ' - r'\(in.*\.yaml"\):.* \x1b\[32melapsed: ' - r'\x1b\[31m[0-9]+\x1b\[0m', ""), + (2, r'These are the properties of the "mudpy\.limit" element.*' + r' \x1b\[32mpassword_tries: \x1b\[31m[0-9]+.*> ', + "show element actor:avatar:admin:0"), + (2, r'These are the properties of the "actor:avatar:admin:0" element.*' + r' \x1b\[32mgender: \x1b\[31mmale.*> ', ""), ) test_show_log = ( -- 2.11.0