From 9bcc891c545ae2c80718097eb92e65ac5f1bc828 Mon Sep 17 00:00:00 2001 From: Robert Martin Date: Wed, 29 May 2013 14:43:21 -0400 Subject: make email clean test quieter Email clean test was printing two strings from the test, even if they match, which was unnecessary. Fixed so it only prints if they are different; the default behavior for assertEqual(). --- askbot/tests/email_parsing_tests.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/askbot/tests/email_parsing_tests.py b/askbot/tests/email_parsing_tests.py index 3ed0908a..9a5ff126 100644 --- a/askbot/tests/email_parsing_tests.py +++ b/askbot/tests/email_parsing_tests.py @@ -18,12 +18,7 @@ class EmailParsingTests(utils.AskbotTestCase): def test_clean_email_body(self): cleaned_body = mail.clean_html_email(self.rendered_template) - print "EXPECTED BODY" - print self.expected_output - print '==================================================' - print cleaned_body - print "CLEANED BODY" - self.assertEqual(cleaned_body, self.expected_output) + self.assertEqual(self.expected_output, cleaned_body) def test_gmail_rich_text_response_stripped(self): text = u'\n\nthis is my reply!\n\nOn Wed, Oct 31, 2012 at 1:45 AM, wrote:\n\n> **\n> ' -- cgit v1.2.3-1-g7c22