Add support for notify attribute when retracting an item.

This commit is contained in:
Lance Stout
2011-09-01 13:36:11 -07:00
parent d7fc2aaa9c
commit 7e5e9542e9
3 changed files with 42 additions and 5 deletions

View File

@@ -478,6 +478,24 @@ class TestStreamPubsub(SleekTest):
</iq>
""", use_values=False)
def testRetract(self):
"""Test deleting an item."""
self.xmpp['xep_0060'].retract(
'pubsub.example.com',
'somenode',
'ID1',
notify=True,
block=False)
self.send("""
<iq type="set" id="1" to="pubsub.example.com">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<retract node="somenode" notify="true">
<item id="ID1" />
</retract>
</pubsub>
</iq>
""")
def testRetract(self):
"""Test deleting an item."""
self.xmpp['xep_0060'].retract(