mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Fix xml:lang tostring test.
This commit is contained in:
parent
f474d378ef
commit
8d4e77aba6
1 changed files with 5 additions and 0 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue