X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=tests%2Ftest_util_stanza.lua;h=fce26f3a7267da0575495e0962edf47341a2f96c;hb=e2615fb00f14ddcb436afd00c7729e1135667d42;hp=f4c4810a57ca87622a6116b013059b602eb5e280;hpb=e644f266d4571e2fb7f50e2716407c5c14707a3b;p=prosody.git diff --git a/tests/test_util_stanza.lua b/tests/test_util_stanza.lua index f4c4810a..fce26f3a 100644 --- a/tests/test_util_stanza.lua +++ b/tests/test_util_stanza.lua @@ -1,3 +1,11 @@ +-- Prosody IM +-- Copyright (C) 2008-2010 Matthew Wild +-- Copyright (C) 2008-2010 Waqas Hussain +-- +-- This project is MIT/X11 licensed. Please see the +-- COPYING file in the source package for more information. +-- + function preserialize(preserialize, st) local stanza = st.stanza("message", { a = "a" }); @@ -13,7 +21,6 @@ function deserialize(deserialize, st) 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");