Merge 0.9->0.10
[prosody.git] / tests / test_util_stanza.lua
index 7916a0c10dac87127f788674bdac7d37f39f79fc..20cc827413b852f8d3080285f139f3e1a178bdd1 100644 (file)
@@ -1,7 +1,7 @@
 -- 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.
 --
@@ -18,10 +18,9 @@ end
 
 function deserialize(deserialize, st)
        local stanza = st.stanza("message", { a = "a" });
-       
+
        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");