Software /
code /
prosody
Diff
tests/test_util_stanza.lua @ 3639:889ef938552c
tests/test_util_stanza.lua: Allow stanza.last_add to be nil.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 26 Nov 2010 05:24:59 +0500 |
parent | 2923:b7049746bd29 |
child | 5776:bd0ff8ae98a8 |
line wrap: on
line diff
--- a/tests/test_util_stanza.lua Fri Nov 26 05:23:37 2010 +0500 +++ b/tests/test_util_stanza.lua Fri Nov 26 05:24:59 2010 +0500 @@ -21,7 +21,6 @@ local stanza2 = deserialize(st.preserialize(stanza)); assert_is(stanza2 and stanza.name, "deserialize returns a stanza"); - assert_is(stanza2.last_add, "Deserialized stanza is missing last_add for adding child tags"); assert_table(stanza2.attr, "Deserialized stanza has attributes"); assert_equal(stanza2.attr.a, "a", "Deserialized stanza retains attributes"); assert_table(getmetatable(stanza2), "Deserialized stanza has metatable");