mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-23 19:19:53 +00:00
Test no longer applies to latest version of XEP-0066.
This commit is contained in:
parent
1d22a04721
commit
b2d42b1d6c
1 changed files with 0 additions and 28 deletions
|
@ -40,33 +40,5 @@ class TestOOB(SleekTest):
|
||||||
|
|
||||||
t.join()
|
t.join()
|
||||||
|
|
||||||
def testReceiveOOB(self):
|
|
||||||
"""Test receiving an OOB request."""
|
|
||||||
self.stream_start(plugins=['xep_0066', 'xep_0030'])
|
|
||||||
|
|
||||||
events = []
|
|
||||||
|
|
||||||
def receive_oob(iq):
|
|
||||||
events.append(iq['oob_transfer']['url'])
|
|
||||||
|
|
||||||
self.xmpp.add_event_handler('oob_transfer', receive_oob)
|
|
||||||
|
|
||||||
self.recv("""
|
|
||||||
<iq to="tester@localhost"
|
|
||||||
from="user@example.com"
|
|
||||||
type="set" id="1">
|
|
||||||
<query xmlns="jabber:iq:oob">
|
|
||||||
<url>http://github.com/fritzy/SleekXMPP/blob/master/README</url>
|
|
||||||
<desc>SleekXMPP README</desc>
|
|
||||||
</query>
|
|
||||||
</iq>
|
|
||||||
""")
|
|
||||||
|
|
||||||
time.sleep(0.1)
|
|
||||||
|
|
||||||
self.assertEqual(events,
|
|
||||||
['http://github.com/fritzy/SleekXMPP/blob/master/README'],
|
|
||||||
'URL was not received: %s' % events)
|
|
||||||
|
|
||||||
|
|
||||||
suite = unittest.TestLoader().loadTestsFromTestCase(TestOOB)
|
suite = unittest.TestLoader().loadTestsFromTestCase(TestOOB)
|
||||||
|
|
Loading…
Reference in a new issue