[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:
parent
e9a1f9f5a7
commit
b4dc178588
|
@ -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 """
|
||||
|
|
Loading…
Reference in New Issue