From 13fdab01398ba69de42006064358624a8742b1f5 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Tue, 30 Aug 2011 21:57:11 -0700 Subject: Test and fix XEP-0060 delete_node() --- tests/test_stream_xep_0060.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests') diff --git a/tests/test_stream_xep_0060.py b/tests/test_stream_xep_0060.py index cb93bbf6..1d912ca5 100644 --- a/tests/test_stream_xep_0060.py +++ b/tests/test_stream_xep_0060.py @@ -102,5 +102,27 @@ class TestStreamPubsub(SleekTest): t.join() + def testDeleteNode(self): + """Test deleting a node""" + t = threading.Thread(name='delete_node', + target=self.xmpp['xep_0060'].delete_node, + args=('pubsub.example.com', 'some_node')) + t.start() + + self.send(""" + + + + + + """) + + self.recv(""" + + """) + + t.join() + suite = unittest.TestLoader().loadTestsFromTestCase(TestStreamPubsub) -- cgit v1.2.3