summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2010-01-29 02:12:45 -0800
committerNathan Fritz <fritzy@netflint.net>2010-01-29 02:12:45 -0800
commit4d8709859096699ad79b8fce295ab05f2cb31de2 (patch)
tree8ace75b54d55e556fc546bd8c30bb1e26c8a3040 /tests
parent8ad32d20655c7aac712cf59f70560a89e625c929 (diff)
parent23b9930c44608e633437c8ec80ef687dd9c0a8b2 (diff)
downloadslixmpp-4d8709859096699ad79b8fce295ab05f2cb31de2.tar.gz
slixmpp-4d8709859096699ad79b8fce295ab05f2cb31de2.tar.bz2
slixmpp-4d8709859096699ad79b8fce295ab05f2cb31de2.tar.xz
slixmpp-4d8709859096699ad79b8fce295ab05f2cb31de2.zip
Merge branch 'develop'
Diffstat (limited to 'tests')
-rw-r--r--tests/test_presencestanzas.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_presencestanzas.py b/tests/test_presencestanzas.py
new file mode 100644
index 00000000..430c71ca
--- /dev/null
+++ b/tests/test_presencestanzas.py
@@ -0,0 +1,15 @@
+import unittest
+
+class testpresencestanzas(unittest.TestCase):
+
+ def setUp(self):
+ import sleekxmpp.stanza.presence as p
+ self.p = p
+
+ def testPresenceShowRegression(self):
+ "Regression check presence['type'] = 'dnd' show value working"
+ p = self.p.Presence()
+ p['type'] = 'dnd'
+ self.failUnless(str(p) == "<presence><show>dnd</show></presence>")
+
+suite = unittest.TestLoader().loadTestsFromTestCase(testpresencestanzas)