From 0659ddeff07b33d3f5e2c21cf9378dfc091386f1 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Fri, 26 Mar 2010 13:27:13 -0700 Subject: added memleak test and attempted to fix presence leak --- tests/test_messagestanzas.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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) -- cgit v1.2.3