summaryrefslogtreecommitdiff
path: root/tests/test_presencestanzas.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_presencestanzas.py')
-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)