summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Martin <rdm@google.com>2013-05-29 14:43:21 -0400
committerRobert Martin <rdm@google.com>2013-05-29 14:53:24 -0400
commit9bcc891c545ae2c80718097eb92e65ac5f1bc828 (patch)
tree7fc21e73c26e4cb5c375a7f5c49299a3a98fd44c
parent0f2dc303750f3ddd88e911b0e4af9a497774036d (diff)
downloadaskbot-9bcc891c545ae2c80718097eb92e65ac5f1bc828.tar.gz
askbot-9bcc891c545ae2c80718097eb92e65ac5f1bc828.tar.bz2
askbot-9bcc891c545ae2c80718097eb92e65ac5f1bc828.zip
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().
-rw-r--r--askbot/tests/email_parsing_tests.py7
1 files changed, 1 insertions, 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, <kp@kp-dev.askbot.com> wrote:\n\n> **\n> '