[IMP] tools.mail: add a test for html_email_clean function, if empty string

bzr revid: chm@openerp.com-20121119151739-vcofz0abk7i71b3l
This commit is contained in:
Christophe Matthieu 2012-11-19 16:17:39 +01:00
parent e9a1f9f5a7
commit b4dc178588
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,9 @@ class TestCleaner(unittest2.TestCase):
new_html = html_email_clean(TEXT_TPL)
self.assertNotIn('quote', new_html, 'html_email_cleaner did not remove correctly plaintext quotes')
# Test5: False boolean for text must return empty string
new_html = html_email_clean(False)
self.assertEqual('', new_html, 'html_email_cleaner did not change a False (boolean) in an empty string.')
class TestHtmlTools(unittest2.TestCase):
""" Test some of our generic utility functions about html """