slixmpp/tests/test_presencestanzas.py

16 lines
428 B
Python
Raw Normal View History

2010-01-29 10:11:45 +00:00
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)