summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2010-01-29 02:11:45 -0800
committerNathan Fritz <fritzy@netflint.net>2010-01-29 02:11:45 -0800
commit23b9930c44608e633437c8ec80ef687dd9c0a8b2 (patch)
tree4969fb610d5116fc6e30470bce06e4630fef28ed /tests
parent395618d3d37c5c4092466f4c5ea6919925fda681 (diff)
downloadslixmpp-23b9930c44608e633437c8ec80ef687dd9c0a8b2.tar.gz
slixmpp-23b9930c44608e633437c8ec80ef687dd9c0a8b2.tar.bz2
slixmpp-23b9930c44608e633437c8ec80ef687dd9c0a8b2.tar.xz
slixmpp-23b9930c44608e633437c8ec80ef687dd9c0a8b2.zip
added separate tostring files
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)