summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-03-26 13:27:13 -0700
committerNathan Fritz <nathan@andyet.net>2010-03-26 13:27:13 -0700
commit0659ddeff07b33d3f5e2c21cf9378dfc091386f1 (patch)
treed92ac93047ec8adcf215fe3829d5dbdbc0b680e8 /tests
parent7383f72367f5217c76ebb44e49a9753eb4f0aac2 (diff)
downloadslixmpp-0659ddeff07b33d3f5e2c21cf9378dfc091386f1.tar.gz
slixmpp-0659ddeff07b33d3f5e2c21cf9378dfc091386f1.tar.bz2
slixmpp-0659ddeff07b33d3f5e2c21cf9378dfc091386f1.tar.xz
slixmpp-0659ddeff07b33d3f5e2c21cf9378dfc091386f1.zip
added memleak test and attempted to fix presence leak
Diffstat (limited to 'tests')
-rw-r--r--tests/test_messagestanzas.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_messagestanzas.py b/tests/test_messagestanzas.py
index ec44803f..4de482f3 100644
--- a/tests/test_messagestanzas.py
+++ b/tests/test_messagestanzas.py
@@ -16,4 +16,10 @@ class testmessagestanzas(unittest.TestCase):
msg.reply()
self.failUnless(str(msg['to']) == 'room@someservice.someserver.tld')
+ def testAttribProperty(self):
+ "Test attrib property returning self"
+ msg = self.m.Message()
+ msg.attrib.attrib.attrib['to'] = 'usr@server.tld'
+ self.failUnless(str(msg['to']) == 'usr@server.tld')
+
suite = unittest.TestLoader().loadTestsFromTestCase(testmessagestanzas)