From: Jeremy Stanley Date: Mon, 31 Jul 2017 14:49:09 +0000 (+0000) Subject: Use writeable element in show element test X-Git-Tag: 0.0.1~141 X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=3cfb3e28f88580e78030ebfef4ccf900dd4efec0;ds=sidebyside 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. --- 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 = (