From e02ffe854745c6c39127967f5d1dcaff915d7190 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 7 Oct 2010 19:42:28 -0400 Subject: Corrected test errors. There was a bug in the XML compare method. --- tests/__init__.py | 0 tests/test_stanza_element.py | 6 +++--- tests/test_stanza_error.py | 8 +++++--- tests/test_stanza_gmail.py | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 tests/__init__.py (limited to 'tests') diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/test_stanza_element.py b/tests/test_stanza_element.py index c157e0a8..2a774d6c 100644 --- a/tests/test_stanza_element.py +++ b/tests/test_stanza_element.py @@ -607,7 +607,7 @@ class TestElementBase(SleekTest): - """) + """, use_values=False) self.failUnless(len(stanza) == 1, "Incorrect stanza size with 1 substanza.") @@ -617,7 +617,7 @@ class TestElementBase(SleekTest): - """) + """, use_values=False) self.failUnless(len(stanza) == 2, "Incorrect stanza size with 2 substanzas.") @@ -627,7 +627,7 @@ class TestElementBase(SleekTest): - """) + """, use_values=False) # Test iterating over substanzas stanza.append(substanza1) 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, """ - + + + """) @@ -52,6 +54,6 @@ class TestErrorStanzas(SleekTest): Error! - """) + """, use_values=False) suite = unittest.TestLoader().loadTestsFromTestCase(TestErrorStanzas) diff --git a/tests/test_stanza_gmail.py b/tests/test_stanza_gmail.py index 5c31a4e2..a5630e62 100644 --- a/tests/test_stanza_gmail.py +++ b/tests/test_stanza_gmail.py @@ -25,7 +25,7 @@ class TestGmail(SleekTest): newer-than-tid="11134623426430234" q="is:starred" /> - """) + """, use_values=False) def testMailBox(self): """Testing reading from Gmail mailbox result""" -- cgit v1.2.3