summaryrefslogtreecommitdiff
path: root/tests/test_stanza_error.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-04-08 16:51:24 -0400
committerLance Stout <lancestout@gmail.com>2011-04-08 16:51:24 -0400
commitf02b0564e0cf664364cd6694a5df6d588071ec62 (patch)
tree11ea7b670ce33de029733e1b045c9c35ca4e5a7b /tests/test_stanza_error.py
parent2e1befc8c6e3092b773a8c297bc183823c2eaeed (diff)
downloadslixmpp-f02b0564e0cf664364cd6694a5df6d588071ec62.tar.gz
slixmpp-f02b0564e0cf664364cd6694a5df6d588071ec62.tar.bz2
slixmpp-f02b0564e0cf664364cd6694a5df6d588071ec62.tar.xz
slixmpp-f02b0564e0cf664364cd6694a5df6d588071ec62.zip
Update tests to reflect XEP-0086 correcting error codes.
Diffstat (limited to 'tests/test_stanza_error.py')
-rw-r--r--tests/test_stanza_error.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_stanza_error.py b/tests/test_stanza_error.py
index e1c7d5a4..5eecfee9 100644
--- a/tests/test_stanza_error.py
+++ b/tests/test_stanza_error.py
@@ -9,7 +9,7 @@ class TestErrorStanzas(SleekTest):
msg.enable('error')
self.check(msg, """
<message type="error">
- <error type="cancel">
+ <error type="cancel" code="501">
<feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
</error>
</message>
@@ -22,7 +22,7 @@ class TestErrorStanzas(SleekTest):
self.check(msg, """
<message type="error">
- <error type="cancel">
+ <error type="cancel" code="404">
<item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
</error>
</message>
@@ -34,7 +34,7 @@ class TestErrorStanzas(SleekTest):
self.check(msg, """
<message type="error">
- <error type="cancel">
+ <error type="wait" code="500">
<resource-constraint xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
</error>
</message>
@@ -50,7 +50,7 @@ class TestErrorStanzas(SleekTest):
self.check(msg, """
<message type="error">
- <error type="cancel">
+ <error type="wait" code="500">
<text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Error!</text>
</error>
</message>
@@ -66,7 +66,7 @@ class TestErrorStanzas(SleekTest):
self.check(msg, """
<message type="error">
- <error type="cancel">
+ <error type="wait" code="500">
<internal-server-error xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
</error>
</message>