summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2011-08-30 22:44:34 -0700
committerNathan Fritz <fritzy@netflint.net>2011-08-30 22:44:34 -0700
commit4699bdff6046e37d9fe4a8c1e29923e239126908 (patch)
tree16915bb496575272b1914b75a96c150165df66d5 /tests
parent354641a3ce5a295ab67ba4c8bf7169d10a835f36 (diff)
parent13fdab01398ba69de42006064358624a8742b1f5 (diff)
downloadslixmpp-4699bdff6046e37d9fe4a8c1e29923e239126908.tar.gz
slixmpp-4699bdff6046e37d9fe4a8c1e29923e239126908.tar.bz2
slixmpp-4699bdff6046e37d9fe4a8c1e29923e239126908.tar.xz
slixmpp-4699bdff6046e37d9fe4a8c1e29923e239126908.zip
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
Diffstat (limited to 'tests')
-rw-r--r--tests/test_stream_xep_0060.py22
1 files changed, 22 insertions, 0 deletions
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("""
+ <iq type="set" to="pubsub.example.com" id="1">
+ <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
+ <delete node="some_node" />
+ </pubsub>
+ </iq>
+ """)
+
+ self.recv("""
+ <iq type="result" id="1"
+ to="tester@localhost" from="pubsub.example.com" />
+ """)
+
+ t.join()
+
suite = unittest.TestLoader().loadTestsFromTestCase(TestStreamPubsub)