local xml = require "util.xml"; describe("util.xml", function() describe("#parse()", function() it("should work", function() local x = [[ ]] local stanza = xml.parse(x); assert.are.equal(stanza.tags[2].attr.xmlns, "b"); assert.are.equal(stanza.tags[2].namespaces["a"], "b"); end); end); end);