mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-12-22 11:09:11 +00:00
15 lines
428 B
Python
15 lines
428 B
Python
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)
|