summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-12-08 00:18:04 -0500
committerLance Stout <lancestout@gmail.com>2010-12-08 00:18:04 -0500
commit8d4e77aba60457d44285f1bec0b5131eee7ff247 (patch)
tree8f5685515bfc087ed25f63a998fc6f673203690c
parentf474d378efdc754b57dedd60a9905ac5e75ee55d (diff)
downloadslixmpp-8d4e77aba60457d44285f1bec0b5131eee7ff247.tar.gz
slixmpp-8d4e77aba60457d44285f1bec0b5131eee7ff247.tar.bz2
slixmpp-8d4e77aba60457d44285f1bec0b5131eee7ff247.tar.xz
slixmpp-8d4e77aba60457d44285f1bec0b5131eee7ff247.zip
Fix xml:lang tostring test.
-rw-r--r--tests/test_tostring.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_tostring.py b/tests/test_tostring.py
index 5235d53e..638e613a 100644
--- a/tests/test_tostring.py
+++ b/tests/test_tostring.py
@@ -10,6 +10,9 @@ class TestToString(SleekTest):
Test the implementation of sleekxmpp.xmlstream.tostring
"""
+ def tearDown(self):
+ self.stream_close()
+
def tryTostring(self, original='', expected=None, message='', **kwargs):
"""
Compare the result of calling tostring against an
@@ -113,6 +116,8 @@ class TestToString(SleekTest):
def testXMLLang(self):
"""Test that serializing xml:lang works."""
+ self.stream_start()
+
msg = self.Message()
msg._set_attr('{%s}lang' % msg.xml_ns, "no")