summaryrefslogtreecommitdiff
path: root/tests/test_presencestanzas.py
blob: 430c71ca4a8ede4325c5f73cb82df09d3a860e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)