summaryrefslogtreecommitdiff
path: root/tests/test_messagestanzas.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_messagestanzas.py')
-rw-r--r--tests/test_messagestanzas.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/test_messagestanzas.py b/tests/test_messagestanzas.py
index 5e2a667a..9b7b0a3f 100644
--- a/tests/test_messagestanzas.py
+++ b/tests/test_messagestanzas.py
@@ -25,7 +25,7 @@ class TestMessageStanzas(SleekTest):
self.failUnless(str(msg['to']) == 'usr@server.tld')
def testHTMLPlugin(self):
- "Test message/html/html stanza"
+ "Test message/html/body stanza"
msg = self.Message()
msg['to'] = "fritzy@netflint.net/sleekxmpp"
msg['body'] = "this is the plaintext message"
@@ -43,4 +43,15 @@ class TestMessageStanzas(SleekTest):
</html>
</message>""")
+ def testNickPlugin(self):
+ "Test message/nick/nick stanza."
+ msg = self.Message()
+ msg['nick']['nick'] = 'A nickname!'
+ self.checkMessage(msg, """
+ <message>
+ <nick xmlns="http://jabber.org/nick/nick">A nickname!</nick>
+ </message>
+ """)
+
+
suite = unittest.TestLoader().loadTestsFromTestCase(TestMessageStanzas)