diff options
author | test <forenjunkie@chello.at> | 2017-08-12 00:45:25 +0300 |
---|---|---|
committer | test <forenjunkie@chello.at> | 2017-08-12 00:45:25 +0300 |
commit | 99a2469e0368be5911d29911df4af3c916daa477 (patch) | |
tree | 0dcc3cd0011cae3026cd517affc6a22b58695cf0 /test | |
parent | 7fedb6c990e6d6e5dfadf4cee7d616e97396a2c4 (diff) |
[test] Fix smacks test
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/test_xmpp_smacks.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/test_xmpp_smacks.py b/test/unit/test_xmpp_smacks.py index 4b10a5b..4747be4 100644 --- a/test/unit/test_xmpp_smacks.py +++ b/test/unit/test_xmpp_smacks.py @@ -44,16 +44,16 @@ class TestDispatcherNB(unittest.TestCase): "xmlns:stream='http://etherx.jabber.org/streams' " "xmlns='jabber:client'>") self.dispatcher.ProcessNonBlocking("<stream:features> " - "<sm xmlns='urn:xmpp:sm:2'> <optional/> </sm> </stream:features>") + "<sm xmlns='urn:xmpp:sm:3'> <optional/> </sm> </stream:features>") self.con.sm.negociate() - self.dispatcher.ProcessNonBlocking("<enabled xmlns='urn:xmpp:sm:2' " + self.dispatcher.ProcessNonBlocking("<enabled xmlns='urn:xmpp:sm:3' " "id='some-long-sm-id' resume='true'/>") assert(self.con.sm.enabled) def _simulate_resume(self): self.con.sm.resume_request() # Resuming acknowledging 5 stanzas - self.dispatcher.ProcessNonBlocking("<resumed xmlns='urn:xmpp:sm:2' " + self.dispatcher.ProcessNonBlocking("<resumed xmlns='urn:xmpp:sm:3' " "id='some-long-sm-id' h='5'/>") assert(self.con.sm.resuming) @@ -104,7 +104,7 @@ class TestDispatcherNB(unittest.TestCase): self.assertEqual(len(uqueue), 10) # The server acknowledges that it recieved 5 stanzas - self.dispatcher.ProcessNonBlocking("<a xmlns='urn:xmpp:sm:2' h='5'/>") + self.dispatcher.ProcessNonBlocking("<a xmlns='urn:xmpp:sm:3' h='5'/>") # 5 stanzas are removed from the queue, only 5 stanzas are left self.assertEqual(len(uqueue), 5) |