summaryrefslogtreecommitdiff
path: root/tests/test_stanza_error.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-10-07 19:42:28 -0400
committerLance Stout <lancestout@gmail.com>2010-10-07 19:42:28 -0400
commite02ffe854745c6c39127967f5d1dcaff915d7190 (patch)
treee33e2c0557412fd59532788ce0d1a0a8370fc60b /tests/test_stanza_error.py
parent42bfca1c8785c6dd15260c22acda6375f3dbf908 (diff)
downloadslixmpp-e02ffe854745c6c39127967f5d1dcaff915d7190.tar.gz
slixmpp-e02ffe854745c6c39127967f5d1dcaff915d7190.tar.bz2
slixmpp-e02ffe854745c6c39127967f5d1dcaff915d7190.tar.xz
slixmpp-e02ffe854745c6c39127967f5d1dcaff915d7190.zip
Corrected test errors.
There was a bug in the XML compare method.
Diffstat (limited to 'tests/test_stanza_error.py')
-rw-r--r--tests/test_stanza_error.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_stanza_error.py b/tests/test_stanza_error.py
index f76ac62d..d5ed6f5f 100644
--- a/tests/test_stanza_error.py
+++ b/tests/test_stanza_error.py
@@ -30,11 +30,13 @@ class TestErrorStanzas(SleekTest):
self.failUnless(msg['error']['condition'] == 'item-not-found', "Error condition doesn't match.")
- del msg['error']['condition']
+ msg['error']['condition'] = 'resource-constraint'
self.check_message(msg, """
<message type="error">
- <error type="cancel" />
+ <error type="cancel">
+ <resource-constraint xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
+ </error>
</message>
""")
@@ -52,6 +54,6 @@ class TestErrorStanzas(SleekTest):
<text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Error!</text>
</error>
</message>
- """)
+ """, use_values=False)
suite = unittest.TestLoader().loadTestsFromTestCase(TestErrorStanzas)